elhombrebala <Gu**********@mail.forum4designers.com> wrote in message news:<Gu**********@mail.forum4designers.com>...
With this script I can force the user to select the checkbox before
continuing, but now I have a menu with lots of radio unputs and I would
like the user to select at least 2 of them; how can I check it?
The typical or intended use of radio buttons is like on an old car
radio. You put of a group of radio buttons and you are only allowed
to select on radio button from the group. You make a group by naming
all the radio buttons the same. This creates an array of radio
buttons with the same name and you use array indexing to access.
The general idea of check boxes are for making none, one, or more than
one selection from the group.
In you case, your want to force the user to make at least two
selections. Checkboxes are for this.
Now, if you have two groupings of radio buttons and you want the user
to fill have selected a radio button from both this would make sense.
I use ( ) to indicate a radio button.
Example:
Pick a color:
( ) red
( ) green
( ) yellow
Pick a style of finish:
( ) wood
( ) metal
( ) plastic
....
If I understand what you are proposing, you could be could be
producing a confusing panel for the user. Try to go with the intend
of radio and check boxes.
I hope my minimalistic example was helpful.
Robert
PS. == true is easier for me to read. I guess that I could get
confused over datatypes, but other than that I do not see a problem.
I guess it could be confusing to a reader who doesn't use == true.