All checkboxes mandatory

Lee Bowers
Tera Contributor

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

LeeBowers_0-1681828665711.png

 

6 REPLIES 6

Joe S1
Kilo Sage

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.

Mohith Devatte
Tera Sage
Tera Sage

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

Hi,
thank you for the reply!

I did the script, however, even though all are now marked (ticked) it still won't allow pass

LeeBowers_0-1681831083153.png

 

What is wrong with my script?

 

LeeBowers_1-1681831116976.png

 

Many thanks

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.