Copy link to clipboard
Copied
I expected the checkbox to send a true or false , but it appears if it's not checked it doesn't get sent in the form collection ?
so instead of checking if form.checkbox EQ "Y" , instead I do this
if isDefined("form.checkbox")
is this correct ?
Copy link to clipboard
Copied
if isDefined("form.checkbox")
structKeyExists() is more robust than isDefined(), but that's the general idea, yeah.
More reading for you:
http://www.w3.org/TR/REC-html40/interact/forms.html#checkbox
--
Adam
Copy link to clipboard
Copied
It's one of the ways that work. Others include StructKeyExists or hidden form fields.
Copy link to clipboard
Copied
thanks Adam
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more