All checkboxes mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 07:41 AM
Hello
How do I make all the checkboxes "selected required", I want the customer needing to tick each of the statments or the request can not be submitted.
at the moment they are all set on " selected required" however I only need to tick one to submit the form

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 07:43 AM
Hello,
You'll need to accomplish this with an OnSubmit client script that will check to see if all the checkbox values are "true" if not display an error message, otherwise submit the record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 08:05 AM
Hello @Lee Bowers ,
You can create a label variable before every check box and make your check box mandatory.
Because by default what happens is that when you create some set of check boxes in a continuous order and you put a label variable before these check boxes at the first position ,just like you have created "Declaration" label it will give a mandatory symbol to that label.
So you can create a label before every check box and then make all the check boxes mandatory.
OR
use a on submit client script to check if all the check boxes values are returning "true" .If yes allow the requestor to submit the catalog item .If not stop the submission.
Hope this helps
Mark my answer correct if this helps you
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 08:19 AM
Hi,
thank you for the reply!
I did the script, however, even though all are now marked (ticked) it still won't allow pass
What is wrong with my script?
Many thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 08:25 AM
Each checkbox should be it's own variable and you're going to have to check each one. Also, a checkbox is a boolean field you don't need to convert the value to a string.