How to verify at least one item is checked in an order guide before moving to the next step?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2025 11:50 AM
I have an order guide that has 5 checkboxes that are used in the rules to determine which catalog item gets included in the order guide. They are optional, but at least one needs to be checked before moving to the next step of the order guide. How can I validate at least one has been checked? I tried creating an onSubmit catalog client script, but it doesn't work.
I need to check on the "Describe Needs" form, prior to moving to the "Choose Options" form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2025 10:38 PM
This worked. I was struggling with jQuery but this seemed to be straight forward solution. Thank You.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Harsh Vardhan & @gjz,
I was able to use Harsh's solution for this exact problem. I have three groups(containers) of 5 check box variables. I am assuming this solution works if you have each set of variables in a container (haven't tested without the containers - I could be wrong). I set one of the five variables in each group to "selection required" and now the form cannot move past 'Describe Needs' without AT LEAST one variable from each group being selected.
I also attempted this with an OnSubmit script with no success.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Harsh Vardhan & @gjz,
I was able to use Harsh's solution for this exact problem. I have three groups(containers) of 5 check box variables. I am assuming this solution works if you have each set of variables in a container (haven't tested without the containers - I could be wrong). I set one of the five variables in each group to "selection required" and now the form cannot move past 'Describe Needs' without AT LEAST one variable from each group being selected.
I also attempted this with an OnSubmit script with no success.