Sorry for the late response to this thread, but I'd like to note that the problem
here, as I see it, is an incorrect use of CFINPUT's CHECKED attribute. CFINPUT will
accept a boolean value for CHECKED. So if your code is revised as follows, it will
work:
<cfif isDefined("form.save.x")>
<cfif FORM.status is 1>
<cfset isChecked = true>
<cfelse>
<cfset isChecked = false>
</cfif>
<cfinput type="radio" name="Status" value="1" onfocus="this.blur();" required="yes"
message="Status is *required*." checked = "#isChecked#"> <font
class="dialoghd">Open</font>
</cfif>
Also, the CFFORM tag (in CFMX) has an optional PRESERVEDATA attribute. If you set it
to "yes," you don't have to deal with the CHECKED attribute at all. CF checks or
unchecks a radio or checkbox based on a matching VALUE, rather than the value of the
CHECKED attribute.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Host with the leader in ColdFusion hosting.
Voted #1 ColdFusion host by CF Developers.
Offering shared and dedicated hosting options.
www.cfxhosting.com/default.cfm?redirect=10481
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4