I have a form field/checkbox and am unable to pass the boolean value even though it is selected.
<input type="checkbox" name="IsContactValid"
id=" IsContactValid"
<cfif
ContactView.GetIsContactValid()>CHECKED
</cfif>>
that will be transmitted to the receiving form if the box is checked.
Kindly help.
From stackoverflow
vas
-
You can give the check box a value:
<input type="checkbox" name="IsContactValid" value="1" id=" IsContactValid" <cfif ContactView.GetIsContactValid()>CHECKED </cfif>>
that will be transmitted to the receiving form if the box is checked.
Al Everett : `checked="checked"` is more valid for more recent HTML standards.Henry : I wouldn't say "more valid". CHECKED by itself is fine for HTML 4.01 and 5.vas : Yes but in this case CHECKED on its own did not work.From Pekka
0 comments:
Post a Comment