How to make all check boxes mandatory on a catalog item

Kalyani35
Tera Guru

Hi experts,

We have a catalog item with 3 checkboxes one after another.

Generally if there is a group of checkboxes then by default selection of at least one checkbox becomes mandatory.

But Client wants all of these 3 checkboxes to be mandatory. 

Is there any OOB way to achieve this.

6 REPLIES 6

jonsan09
Giga Sage
Giga Sage

What about creating three consectuctive true/false fields and making all three mandatory?

Manal  AQUIL
Tera Contributor

Hi Kalyani,

 

You can create a an onSubmit client script and check if all the checkboxes has value then return true else return false .

 

So, that if any of the checkboxes will not be selected then form submission will be aborted.

Kalyani35
Tera Guru

Hi manalAquil,

Yes, we can do that, but they want the asterisk sign to appear next to all checkboxes.

 

jonsan09
Giga Sage
Giga Sage

Looks like its possible if you put a contrainer split between your checkbox variables. See screenshots