This is not a problem with CF_REUSEFORM. This is just how check-boxes work
in HTML (and radio buttons, I might add).
The solution I use is in my Action page for the form, <CFPARAM> all the
checkbox form variable to their UNCHECKED value.
<CFPARAM Name="Form.MyCheckBox" Default="0">
That way, if they were not checked, they are still defined, and you don't
have to do a bunch of <CFIF IsDefined("Form.MyCheckBox")> statements.
At 07:57 PM 5/28/01, Mischa wrote:
>Hi there!
>
>I have a little problem with the CF_REUSEFORM tag and checkboxes. Because
>cheboxes that are not selected are not defined as form fields, I get an
>error message when using CF_REUSEFORM with the displayaction="form".
>
>Can anybody give me a hint how to solve this? I tried to assign a default
>value with CFPARAM before starting CF_RESUSEFORM, but that's not the
>solution - if I use it like that, my checkbox is always selected (because
>I'm quering the state with "...<cfif AccountLockedOut is 1>checked</cfif>").
>
>Thanks for your help!
>
>Regards,
>Mischa
>softwarepipeline.com AG
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists