Will this even work if it's a cfinput? Surely you can't use a tag within another cf tag? (between a <cfoutput> and a </cfoutput> yes, but surely not within a <cfinput>.
-----Original Message----- From: Stephen Moretti [mailto:[EMAIL PROTECTED] Sent: 11 May 2005 09:48 To: CF-Newbie Subject: Re: Conditional attributes[Scanned] Robertson-Ravo, Neil (RX) wrote: >You do not require IS "true". > >You can just use E.g. ><cfinput > type="radio" > name="myName" > <cfif scope.myName> > checked="yes" > </cfif> > > > >This is better practice. > > Even better practice is to make sure you close your <cfinput> too ;) You might like the inline IF as an alternate. <cfinput type="radio" name="myName" #IIF(scope.myName,DE('checked="yes"),DE(''))#> BTW - there's no real need for cfinput in this instance. You aren't using any of its functionality, so an ordinary <input> will suffice. Stephen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:911 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
