Mandatory selection of Checkbox options

sola2
Tera Contributor

Hello, 

 

I have created a catalog item with serveral sections containing checkboxes. What I want to archieve is that for each section it is mandatory to check at least one of the check boxes.

sola2_0-1739567665383.png

I came accross an old post https://www.servicenow.com/community/sacramento-snug/catalog-item-sleight-of-hand-mandatory-selectio... which states to set the label as mandatory with a UI Policy and the conditions been that the checkboxes are false.

sola2_1-1739567799574.png

 

However, this is not working for me. Can someone help me with a more updated solution to this issue? Thank you in advance.

1 ACCEPTED SOLUTION

Hi @sola2 ,

 

You may try by creating a 2nd list in a Variable-Set & have a ui policy to control the visibility & mandatory requirement.

 

(1) Nothing selected

DharmaLiyanage_1-1739824003000.png

 

 (2) Tier 1 Ministry Role selected 

DharmaLiyanage_2-1739824051966.png

 

(3) Variable set for 2nd List

DharmaLiyanage_3-1739824168623.png

 

(4) UI Policy

DharmaLiyanage_4-1739824256253.png

 

Hope, this helps 🙂

 

 

 

 

 

 

View solution in original post

6 REPLIES 6

Hello @Dharma Liyanage

If i do it this way this causes another issue that is that it makes it visible always. The label Tier 1 Ministry and its checkboxes should only be visible if Tier 1 Ministry is selected as the Tier Level desired

sola2_0-1739812045221.png

 

Hi @sola2 ,

 

You may try by creating a 2nd list in a Variable-Set & have a ui policy to control the visibility & mandatory requirement.

 

(1) Nothing selected

DharmaLiyanage_1-1739824003000.png

 

 (2) Tier 1 Ministry Role selected 

DharmaLiyanage_2-1739824051966.png

 

(3) Variable set for 2nd List

DharmaLiyanage_3-1739824168623.png

 

(4) UI Policy

DharmaLiyanage_4-1739824256253.png

 

Hope, this helps 🙂