then it looks as though there are a lot of CFIFs in your future. of course, if you are returning results in the format shown ie q1, q2, q3, you could throw it all into a loop and use an Evaluate statement to build the q# portion Rob
On Tue, Oct 28, 2008 at 3: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:314489 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4