You are viewing limited content. For full access, please sign in.

Question

Question

Force a form to require at least 2 of 3 checkboxes?

asked on July 19, 2019

I have a form where users can check up to 3 boxes, but we need to require at least 2 of the 3 to be checked. I can't find built-in way to do this. Is this possible using JavaScript?

0 0

Replies

replied on July 19, 2019

Yes, you could use JavaScript/JQuery to include a custom Parsley Validator, which would support error messages and work with the built-in form validation.

http://parsleyjs.org/doc/examples/customvalidator.html

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.