Snip
On 3/15/07, Will Tomlinson <[EMAIL PROTECTED]> wrote:
> I have a form with dynamically created radio buttons. They look like this in
> the source:
>
> What's the best way to server side validate to make sure at least ONE radio
> button per set was selected?
>
Will,
Since if no radio buttons have been selected, the field will not exist
in the form structure, so you could use either on of these methods:
isDefined("Q_question1")
or
StructKeyExists("form","Q_question1")
If either one of these fails to return true, than the person did not
select a radio button.
Hope this helps,
Dean
--
__________________________________________
Dean Lawrence, CIO/Partner
Internet Data Technology
888.GET.IDT1 ext. 701 * fax: 888.438.4381
http://www.idatatech.com/
Corporate Internet Development and Marketing Specialists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7.
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272776
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4