Set variable on variable set mandatory based on item

Jose MMR
Tera Guru

Hi all,

 

I have on variable set with one variable as mandatory by default included in 70 items. Customer wants to make not mandatory this variable on 15 of these items.

 

Could it be possible?

Regards.

1 ACCEPTED SOLUTION

_Gaurav
Kilo Sage

Hi @Jose MMR 
If I've understood your requirement correctly that you have a variable set in which there is one mandatory field and that variable set is used in 70 items however in 15 items you want that variable as non-mandatory right?

If YES, then you can make that variable non-mandatory by using UI Policies in those 15 items.

Please mark this as helpful and accepted as a solution if this resolves your query.
Thanks!

View solution in original post

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Jose MMR 

 

UI Policy is the only option to do this. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

_Gaurav
Kilo Sage

Hi @Jose MMR 
If I've understood your requirement correctly that you have a variable set in which there is one mandatory field and that variable set is used in 70 items however in 15 items you want that variable as non-mandatory right?

If YES, then you can make that variable non-mandatory by using UI Policies in those 15 items.

Please mark this as helpful and accepted as a solution if this resolves your query.
Thanks!

bradleydebono
Mega Guru

Yes you could add a UI Policy to each of those 15 items with a UI Policy Action that sets that variable to "mandatory false" (false selected from the mandatory choice on the UI Policy Action).