deanna, this worked... thanks much
sas Deanna Schneider wrote: > In pseudo code. > > <cfset list = "field1,field2,field3..."> > <cfset count = 0> > <cfloop list="#list#" index="i"> > <cfif isDefined(form[i])> > <cfset count = count + 1> > </cfif> > </cfloop> > <cfif count IS NOT listlen(list) AND count is not 0> > error! > </cfif> > > > > On Mon, Nov 17, 2008 at 10:39 AM, Scott Stewart <[EMAIL PROTECTED]> wrote: > >> Hey all.. >> >> I've got a logic head scratcher here... >> >> I have a form with several sections in it.. >> In the last section of the first page of the form, there are five radio >> buttons, each button has a possible "yes", "no" or "I don't know" answer. >> On the form action page I need to do the following: >> >> * Determine if any of the radio boxes is checked >> (StructKeyExists(form.fieldname)) >> * (This is where it gets ''interesting"...) If any of the radio >> buttons is checked, then they must all be checked, if not throw an >> error message. >> >> anyone have any ideas on how to perform the second part elegantly? >> >> -- >> Scott Stewart >> ColdFusion Developer >> >> Office of Research Information Systems >> Research & Economic Development >> University of North Carolina at Chapel Hill >> >> Phone:(919)843-2408 >> Fax: (919)962-3600 >> Email: [EMAIL PROTECTED] >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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-community/message.cfm/messageid:280540 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
