Set a minimum choice limit in checkboxes
-
Hello,
i have a form with checkboxes. In the last two checkboxes, i need users to choose 8 options for each checkbox, not more, not less. I added this code in a php file (mu-plugins) as described in other similar topics: https://gist.github.com/wpmudev-sls/5be7b5f7eac4132e1539b850b8ab751c
The code works perfectly as regards the maximum limit of 8 choices, but I don’t know how to set the minimum limit: even by selecting 7, 6, 5 etc. the form allows me to go to the next step. How do I limit the choices so that they are necessarily 8, no more and no less?
Thank you!The page I need help with: [log in to see the link]
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Set a minimum choice limit in checkboxes’ is closed to new replies.