Setting variable set to mandatory

GhitaB
Tera Contributor

Hi everyone !

 

please i have a quick question, When i make a variable set to mandatory will it make the variables inside mandatory too or i need to set them mandatory

1 ACCEPTED SOLUTION

Aniket Chavan
Tera Sage
Tera Sage

Hello @GhitaB ,

 

Yes, you’re right — if you set the variable set as mandatory using a catalog-level UI policy, all the variables within that set will automatically become mandatory as well. This can save you from having to mark each variable individually, especially if you intend for all of them to be required anyway.

 

Just make sure you're applying the UI policy at the catalog item level. I quickly tested this behavior and have added a few screenshots below for reference. Hope this helps!

 

Before applying the UI policy:

 

AniketChavan_0-1751523674743.png

 

UI Policy Action:

 

AniketChavan_1-1751523806594.png

 

After applying the UI policy:

AniketChavan_2-1751523870211.png

 

Hope this helps — feel free to reach out if you have any follow-up questions!

 

🔹 Please mark Correct if this solves your query, and 👍 Helpful if you found the response valuable.

 

Best regards,
Aniket Chavan
🏆 ServiceNow MVP 2025 | 🌟 ServiceNow Rising Star 2024

 

View solution in original post

7 REPLIES 7

Hanna_G
Tera Guru

Hi @GhitaB 

You will need to make each of the variables mandatory that you want. You can do this a couple of ways - but easiest would be the mandatory flag on the variable. 

Shraddha Kadam
Mega Sage

Hello @GhitaB ,

 

Yes. You have to make the variables mandatory inside it.

If my response was helpful, please mark it as correct and helpful.
Thank you.

Syed zabiullah
Tera Expert

Hi @GhitaB 

Making a variable set mandatory in ServiceNow does not make the variables inside it mandatory. You need to set each variable inside the set as mandatory individually.


If my response helped, please mark it correct.

Regards,

Syed K



Aniket Chavan
Tera Sage
Tera Sage

Hello @GhitaB ,

 

Yes, you’re right — if you set the variable set as mandatory using a catalog-level UI policy, all the variables within that set will automatically become mandatory as well. This can save you from having to mark each variable individually, especially if you intend for all of them to be required anyway.

 

Just make sure you're applying the UI policy at the catalog item level. I quickly tested this behavior and have added a few screenshots below for reference. Hope this helps!

 

Before applying the UI policy:

 

AniketChavan_0-1751523674743.png

 

UI Policy Action:

 

AniketChavan_1-1751523806594.png

 

After applying the UI policy:

AniketChavan_2-1751523870211.png

 

Hope this helps — feel free to reach out if you have any follow-up questions!

 

🔹 Please mark Correct if this solves your query, and 👍 Helpful if you found the response valuable.

 

Best regards,
Aniket Chavan
🏆 ServiceNow MVP 2025 | 🌟 ServiceNow Rising Star 2024