How to make a group of checkboxes mandatory

dianeramos
Tera Contributor

I have a group of checkboxes i want to set as mandatory from the Form Design. I know from catalog item, adding a label and setting as mandatory will do the trick. Can I please get suggestions on how I can do this from a Form Design view?

Thank you

 

1 ACCEPTED SOLUTION

I've only ever used this as a Catalog Client Script rather than a Client Script; but that shouldn't really make a huge difference, other than where/when it runs.

View solution in original post

20 REPLIES 20

Is 'bug" the choice value for the variable? You may want to also test it as "getDisplayValue"

dianeramos
Tera Contributor

Did i put it in the right place?

find_real_file.png

It's where I would be using it, so not sure why it's not wanting to work.

The line is essentially saying that "if passed is negative AND the selection is bug" do the following; which is show the alert and stop the submit.

I don't currently have this in a working environment or "live" testing scenario, but I can throw something together to see what's going on

Thank you Ian!

Found the issue. It's the "Isolate Script" checkbox on the Catalog Client Script record. Unchecking it allows the script to work as expected.

You may not have the field visible so go to the Configure Form Layout to add it, then uncheck it.