Set Checkbox-Group Mandatory

moeslee
Kilo Explorer

Hello everyone

I try to implement a Service for the Service Catalogue.
As required from a user, i should implement a checkbox group.
In the end the user should select at least one checkbox, but also can select multiple checkboxes.
This step i could successfully implement. I now have a label with order 100 and some checkboxes (order 105, 110...)
That also looks fine in the UI, The label name acts as a "grouping element" with all the checkboxes in it, but how can i now set this group mandatory to achieve what i descibed above?

In the SNOW Wiki there is an image (http://wiki.servicenow.com/index.php?title=File:CheckBox.png). this green icon shows that this field is mandatory, but in my example there is no green image displayed. Unfortunately i can't find a more detailed description of this checkbox groups.

Did i implement it wrong?
Can anyone help me with this issue?

Thank you in advance

5 REPLIES 5

Mark Stanger
Giga Sage

http://www.servicenowguru.com/scripting/client-scripts-scripting/checkbox-variables-mandatory/


Hi Mark,



That is a very helpful answer, thank you for that!


Can you also help me out with a little more complex question? I would like the checkbox group to be mandatory, depending on the value of another variable set. And I would like it to be visible when selected and not mandatory when not visible.



Thank you in advance!



Kind regards, Barbara


moeslee
Kilo Explorer

Hello Mark

Thank you for the fast answer.

I'll give it a try, but it looks very nice, another site too bookmark 🐵

Cheers


moeslee
Kilo Explorer

Hi Mark

Thank you, that worked perfect.

Have a nice Day