Well, then isDefined("form.q1") or structKeyExists(form, "q1") should both be
true, whether or not q1 is blank. If you're getting the not defined error for
a text input, then something else is going on ... is there a redirect or a
layer of translation between the post and the processing or some layer that's
not able to 'see' the form scope?
>I hear you, and already did that for checkboxes. But, I have text fields and
>radio buttons in my form!
>
>
>The other option is to use "yes" and "no" radio buttons instead of
>checkboxes, where the radio buttons default to "no". That way, the field
>always exists, but you still get the difference between 1 and 0. Checkbox
>that is unchecked really doesn't exist in the POST, so the CFIF solution is
>pretty much required otherwise, yes.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314484
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4