How to make label field mandatory-catalog form.

Community Alums
Not applicable

Hi,

We have a requirement to create the Label Variable and under it, there are multiple checkboxes.


We don't want the checkbox to become mandatory instead we want the label variable.The requirement is to make the label as mandatory instead of each checkbox.

Please help with your suggestions.

Regards,

Rafmine.

1 ACCEPTED SOLUTION

Hitoshi Ozawa
Giga Sage
Giga Sage

Not sure about the question. Label do not have input so label itself can't not be made mandatory. If the question is to just put a red asterisk to the front of the label, just follow Akif's advice. Making the first checkbox field under the label mandatory will put the red asterisk on the label and make at least one checkbox selection mandatory (not necessary just the first checkbox).

For example, I've defined 3 checkboxes underneath a label.

find_real_file.png

Created a UI Policy to set the first check box mandatory.

find_real_file.png

This will result in putting a red asterisk next to the label and make at least on select mandatory.

find_real_file.png

When at least one checkbox is checked, the asterisk becomes black to indicate the mandatory condition has been satisfied (note that it does not have to be the check box set mandatory by the UI Policy).

find_real_file.png

 

View solution in original post

9 REPLIES 9

Akif Shah
Tera Contributor

Just make the first checkbox under the label field mandatory and you will see the red * next to the label. This way the user only has to select any one of the checkboxes to satisfy the condition.

Ankur Bawiskar
Tera Patron
Tera Patron

@Rafmine 

you can try to make one of the checkbox as "selection required"

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Rafmine 

you can try to make one of the checkbox as "selection required"

Screenshot below

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Rafmine

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader