I just ran across this today. There is a bug with required checkboxes in CFMX7. Basically they don't work. However, you can get around this by simply writing your own validation using onSubmit. This is a known issue so no need to bug MACR about it. This code block demonstrates the bug:
<cfform format="flash">
<cfinput type="checkbox" name="agree" label="I Agree" required="true" value="1">
<cfinput type="submit" name="submit" value="Push the button">
</cfform>
<cfinput type="checkbox" name="agree" label="I Agree" required="true" value="1">
<cfinput type="submit" name="submit" value="Push the button">
</cfform>
And here is a sample of how to fix it:
<cfform format="flash" onSubmit="if(!agree.selected ){ alert('You must agree!'); return false; }">
<cfinput type="checkbox" name="agree" label="I Agree" required="true" value="1">
<cfinput type="submit" name="submit" value="Push the button">
</cfform>
<cfinput type="checkbox" name="agree" label="I Agree" required="true" value="1">
<cfinput type="submit" name="submit" value="Push the button">
</cfform>


Comment 1 written by David on 7 March 2005, at 5:44 PM
Comment 2 written by Raymond Camden on 7 March 2005, at 6:00 PM
Comment 3 written by Andy Allan on 8 March 2005, at 4:41 AM
Comment 4 written by Andrew on 5 April 2005, at 4:31 AM
Is there a way to get the value returned to the server?
Comment 5 written by John Farrar on 2 October 2005, at 2:35 PM
Comment 6 written by John Farrar on 2 October 2005, at 2:44 PM
CFForm "flash"...
CFFormGroup "Tab..." ...
CFFromGroup "page"
CFLoop query=""
And for some reason the flash doesn't come up... never loads but if the type is changed to radio then it works.
Comment 7 written by Raymond Camden on 3 October 2005, at 8:22 AM
Comment 8 written by John Farrar on 3 October 2005, at 3:48 PM
Comment 9 written by Andy Carter on 27 July 2007, at 10:48 PM
[Add Comment] [Subscribe to Comments]