Answered
"checked" not working in cfinput
Hi
I'm fairly new to Coldfusion but making reasonable progress. However, I've got a problem with cfinput in a cfformgroup. There are several checkboxes in the group and I want to have one of them checked when the form appears. Weirdly, this was working at one point but after making changes in other parts of the form, it stopped working. Unfortunately I didn't notice when this happened but there have been no changes to the code within the form group. I'm fairly convinced this must be a bug in CF but can anyone offer any suggestions (all gratefully received).
Code of the form group is this:
<cfformgroup type="vertical">
<cfinput type="checkbox" name="publishphone1" id="publish01" value="Y">
Publish phone 1<br />
<cfinput type="checkbox" name="publishphone2" id="publish02" value="Y">
Publish phone 2<br />
<cfinput type="checkbox" name="publishmobile" id="publish03" value="Y">
Publish mobile<br />
<cfinput type="checkbox" name="publishfax" id="publish04" value="Y">
Publish fax<br />
<cfinput type="checkbox" name="publishemail" id="publish05" value="Y" checked="yes">
Publish e-mail<br />
</cfformgroup>
Thanks - Roger
I'm fairly new to Coldfusion but making reasonable progress. However, I've got a problem with cfinput in a cfformgroup. There are several checkboxes in the group and I want to have one of them checked when the form appears. Weirdly, this was working at one point but after making changes in other parts of the form, it stopped working. Unfortunately I didn't notice when this happened but there have been no changes to the code within the form group. I'm fairly convinced this must be a bug in CF but can anyone offer any suggestions (all gratefully received).
Code of the form group is this:
<cfformgroup type="vertical">
<cfinput type="checkbox" name="publishphone1" id="publish01" value="Y">
Publish phone 1<br />
<cfinput type="checkbox" name="publishphone2" id="publish02" value="Y">
Publish phone 2<br />
<cfinput type="checkbox" name="publishmobile" id="publish03" value="Y">
Publish mobile<br />
<cfinput type="checkbox" name="publishfax" id="publish04" value="Y">
Publish fax<br />
<cfinput type="checkbox" name="publishemail" id="publish05" value="Y" checked="yes">
Publish e-mail<br />
</cfformgroup>
Thanks - Roger
