The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Checkbox Limit
Is there a tested way to limit how many checkboxes are checked?
I have to provided 5 options, and the user can choose up to 2.
May 26, 2018 at 5:47 am
You can do this with jQuery: https://stackoverflow.com/questions/19001844/how-to-limit-the-number-of-selected-checkboxes
May 26, 2018 at 5:50 am
Thanks! I did try this as I saw in another post but the code renders as text in the form page and not triggers as script. When I add *script* and */script* to hold that code, I get an error message saying I can do that. I am placing this code in the back end of the Form under Custom HTML. Is there a better way to add this?
May 26, 2018 at 6:04 am
jQuery code goes in the custom HTML in the after fields area. It must be wrapped in script tags.
If you are using Wordfence, it will block actions like this and you have to whitelist the action.
Discussion closed.