How to make label field mandatory for a catalog form.

User205031
Tera Contributor

Hi,

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


The requirement is to make the label as mandatory instead of each checkbox. If any of the checkbox is checked, the label will become non-mandatory.

 

Below is the label and checkbox fields:

User205031_0-1742893228143.png

 

I have created UI Policy to make 1st checkbox as mandatory

User205031_1-1742893302468.png

 

When I am trying to select other checkbox in the form, the label is still mandatory:

User205031_2-1742893371167.png

It is not working.

Please help with your suggestions.

Thanks!

9 REPLIES 9

Medi C
Giga Sage

Hi @User205031,

 

Please create a UI Policy without a condition, and create a UI Policy action to make the label field mandatory. 

Example:


Label 1
- Checkbox 1
- Checkbox 2
- Checkbox 3

Your UI Policy action would have "Label 1" as mandatory


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

Hi @User205031,

 

Have you tried the solution I suggested? 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

J Siva
Tera Sage

Hi @User205031 

1. Create a Label type question.

2. Create check box type fields as required and make the first check box field variable as 'Mandatory/Selection required".
For more info, please follow the steps provided in the below community post to achieve your requirement.
Solved: Make label for checkboxes mandatory - ServiceNow Community

 

Sample:

Variables:

JSiva_0-1742894204206.png

1. Label:

JSiva_1-1742894275420.png

2. Check box 1:

JSiva_2-1742894320306.png

3. Check box 2:

JSiva_3-1742894364028.png

 Output:

JSiva_4-1742894460927.pngJSiva_5-1742894487238.pngJSiva_6-1742894519792.png


Hope this helps.

Regards,
Siva

Hi Siva,

I have done the same but its not working.