Click Submit Ensure At Least ONE checkbox is selected

msreyes 19 May, 2009
I have used javascript functions to do some cool things. But one thing that eludes me is how to ensure that people select at least ONE checkbox option on my form. I have the following checkbox's:

KYUKata
KYUKumite
KYUShindo
KYUShindo
BBMandKata
BBOpenKata
BBKumite
BBShindo
Masters_Cup


When one is checked it's value is "Yes". When people click submit I would like them to get a popup message indicating that the need to select at least one option. Suggestions?
GreyHead 19 May, 2009
Hi msreyes,

ChronoForms built in 'validate-one-required' will do this I think.

Bob
msreyes 19 May, 2009
I did try that without success. They are not part of any group though. They are just a series of checkboxes on my form so not sure if that has anything to do with it.
Max_admin 20 May, 2009
Hi msreyes,

How did you create this form ? the wizard ? please post here the code of this set of checkboxes, they need to be in one group which means that they have the same name like name="checks[]"

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
msreyes 20 May, 2009
I created the form without the wizard - and I have now grouped them (had to change the layout but no big deal). All works well now.
This topic is locked and no more replies can be posted.