Forums

Limit Number of Checkbox Selections

melvins138 14 Aug, 2014
I am working on a form where I have 10 individual checkboxes. Some of the checkboxes open a hidden DIV section.

I am needing to limit the number of selected checkboxes to one.

So basically,

Checkbox 1 - Sign Me Up

Checkbox 2 - Sign Me Up Later
<Hidden Div>Datepicker</Hidden Div>

Checkbox 3 - Sign Me Up With Notes
<Hidden Div>Text Input</Hidden Div>


I would need to limit it to only one checkbox.


Is this possible?

Thanks,
Ryan
GreyHead 15 Aug, 2014
Hi Ryan,

Use radio buttons in place of checkboxes? That should handle it automatically; otherwise you need custom JavaScript to unselect all the others when a new one is clicked.

Bob
This topic is locked and no more replies can be posted.