Ian,

Check the docs:

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p65.htm#wp1100379

<CFINPUT> docs shows the proper attribute is simply CHECKED.

The reason your first thing didn't work is you can't embed a <CFIF statement
in a TAG.  What you can do is do a <CFIF outside:

<CFIF session.test.application>
        <cfinput .... checked >
<CFELSE>
        <cfinput .... >
</CFIF>

That will do it.  Be sure to CFLOCK your session variable.

Dave

-----Original Message-----
From: Ian Vaughan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 14, 2005 8:58 AM
To: CF-Talk
Subject: RE: Populating Radio Buttons in CFFORM?


Just tried the following code

 <cfinput type="radio" value="yes" name="applicant" required="yes"
message="Please Complete"
checked="#session.test.applicant#">Yes&nbsp;&nbsp;
<cfinput type="radio" value="no" name="applicant"
checked="#session.test.applicant#">No</td>

Which returns

Error Occurred While Processing Request  
cannot convert the value "" to a boolean  
 
Looks as if you cant use

 checked="#session.test.applicant#" to pre populate radio buttons, 

Is it possible to achieve this in Coldfusion ?
 

******************************************************************************************
The information contained in this message, including attachments, may contain 
privileged or confidential information that is intended to be delivered only to 
the 
person identified above. If you are not the intended recipient, or the person 
responsible for delivering this message to the intended recipient, ALLTEL 
requests 
that you immediately notify the sender and asks that you do not read the 
message or its 
attachments, and that you delete them without copying or sending them to anyone 
else. 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218195
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to