Home › Forums › Quform WordPress › Minimum number of selection for multiselect
- This topic has 7 replies, 2 voices, and was last updated 1 year, 7 months ago by Ally.
- AuthorPosts
- November 22, 2019 at 8:13 pm #30275a.pirouzeParticipant
Hi Ally
I have read the documentation on how to set a limit on number of selections in multiselect and check boxes, however, is it possible to do the opposite? In other words would you be kind enough to guide me on how I can set a minimum number of selection required for multiselect or check boxes, please?
Kind RegardsNovember 25, 2019 at 10:50 am #30283AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 5 years ago by Ally.
November 25, 2019 at 10:53 am #30285a.pirouzeParticipantHi Ally
Thanks for your quick reply. Can the above code be added to the script section of the form, or does it have to go to functions.php.
Best Regards
A PirouzeNovember 25, 2019 at 10:55 am #30286a.pirouzeParticipantHi Ally
I just noticed, this is a filter so yes it has to be added in functions.php.
Best Regards
A. PirouzeNovember 25, 2019 at 11:00 am #30288AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
November 25, 2019 at 11:08 am #30289a.pirouzeParticipantHi Ally
Many thanks. Our website is managed by a their party. Unfortunately I do not have access to functions.php to add the code, but that is not a problem we can ask the third party to do that for us. I just wondered if I could add it to the script section of the form, but I did not notice it was PHP and not java script.
I think I will asked our service provider to add the code for us, rather than installing another plugin, just to keep the number of plugins as low as possible.
Once again thanks for your quick reply, and brilliant product.
Best Regards
A. PirouzeApril 6, 2023 at 4:03 pm #35365dirklaeremansParticipantHello Ally,
I am trying to force my users to choose at least one element in a checkbox array. Unfortunately, the “valid” filter does to seem to fire at all if none of the options have been chosen, so no error message is shown.
is there any way to force the user to choose at least 1 element.
April 7, 2023 at 11:41 am #35370AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.