cfform radio buttons on an edit form
Posted on 2005-04-27
Hmm... ran into a new problem just now. Back when using simple <form>'s on my page, I used to include a line like this to select the correct radio button.
<input name="Status" type="radio" value="0" <cfif Consumer_Edit.Status eq 0>checked="checked" </cfif>/>
Using the cfif line to add my happy little checked value as needed. now I have converted these items to cfinput type=radio and I am not sure how I would go about this using the cfinput. This code is on an edit form .. so I need to make sure the right radios are preselected.
<cfinput type="radio" name="Gender" value="M" />
<cfinput type="radio" name="Gender" value="F" />
<cfinput type="radio" name="Gender" value="U" checked="true" />