Yup, you're right.

It's the radio buttons that are giving me the hassle!

-----Original Message-----
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: October-28-08 5:14 PM
To: cf-talk
Subject: Re: Adding & Updating empty values

text fields are defined even if they are empty.  the value is simply an
empty string.

On Tue, Oct 28, 2008 at 12:58 PM, Rick Sanders <[EMAIL PROTECTED]> wrote:

> I hear you, and already did that for checkboxes. But, I have text fields
> and
> radio buttons in my form!
>
>
> -----Original Message-----
> From: Jason Fisher [mailto:[EMAIL PROTECTED]
> Sent: October-28-08 4:47 PM
> To: cf-talk
> Subject: Re: Adding & Updating empty values
>
> 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.
>
>
>
> >Is that the only way?
> >
> >It's a questionnaire form with 50 questions! You mean I have to do a
> <cfif>
> >for every question and assign it a blank value if there's no value!?
> >
> >wrap it in a <cfif> so..
> ><cfif isundefined("form.q1")>
> >           <cfset form.q1 = "">
> ></cfif>
> >
> >Rob
> >
> >
> >
> >to
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:314490
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to