Validating one of 3 radio buttons

Is it possible using the Form Validate action to make sure one of three radio buttons is checked? Obviously you can’t apply it to each one.

K


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Anybody?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I don’t think it can be done with Actions. There’s a bit of JavaScript which can detect if a certain radio group has at least one checked member (requires Prototype):

$$('input[name="yourRadioName"]:checked').length > 0

But then rolling that into the same structure as the rest of the validations is the challenge.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well Walt, as Homer says, “If a job’s hard to do, it’s not worth doing.”

I wasn’t sure if they could be placed in a table or something and then apply the Validate Action to that.

K.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options