Home › Forums › Quform WordPress › 2 checkboxes required…
- This topic has 5 replies, 2 voices, and was last updated 3 years, 1 month ago by
Ally.
- AuthorPosts
- October 10, 2022 at 10:01 am #34820
Bijdageraad
ParticipantHello we made a form where two parts (of days) need to be selected. Is there a way to set it?
Now it is possible to only check one and go on, but two must be the minimal choise..Text only is not enough sadly..
Attachments:
You must be logged in to view attached files.October 10, 2022 at 10:03 am #34822Bijdageraad
ParticipantFound this (https://support.themecatcher.net/quform-wordpress-v2/guides/customization/limit-checkbox-selections)
Is that it also for my form?October 10, 2022 at 3:20 pm #34828Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 11, 2022 at 1:16 pm #34835Bijdageraad
ParticipantThanks we’ll try it out 😉
October 11, 2022 at 2:38 pm #34836Bijdageraad
ParticipantThat did the job, also placed jQuery in it like this
(jQuery(function ($) {
var $checkboxes = $(‘.quform-field-1_3’).click(function () { if ($checkboxes.filter(‘:checked’).length > 2) { $(this).prop(‘checked’, false);
return false;
}
});
});)With the filter code it’s all i need to do? Seems to work fine 😉
October 17, 2022 at 10:08 am #34849Ally
Support 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.
