<cfif isdefined("FORM.f1") AND sdefined("FORM.f2") ANND sdefined("FORM.f3")>
<cfelse>Please check all fields
</cfif>

On Mon, Nov 17, 2008 at 11: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 &amp; 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:280528
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5

Reply via email to