Catalog Item Templates: client scripts and UI Policies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 01:12 PM
I'm trying to create a Catalog Item Template that will likely use some question sets that will require Catalog Client Scripts and Catalog UI Policies. Is there a way to define this at a template level, or am I only able to do so on the item level?
Seems that if I can only do the latter, then the template may not be as useful as I had hoped, and the only real recourse would be to copy an existing Catalog Item with the scripts already there if I want to use it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 01:20 PM
You can create variable sets and then put those on multiple catalog items. Each variable set can have it's own catalog client scripts and UI policies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 11:51 AM - edited 07-14-2023 11:52 AM
I am aware of variable sets, and their functions, but my issue is that I have multiple variable sets, each with a different function and reused across the instance (we have more than 10 variable sets, and each template uses about 3 or 4 of them). The issue for me lies in the ability to define what happens for each variable set itself for each catalog item.
I don't think ServiceNow allows for nesting of variable sets within variable sets, because that would be extremely useful in me to define which variable sets to trigger based on dynamic criteria.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 01:31 PM
answer to your question is variable sets.
Variable sets: variables, related client script, related UI policies can be included in multiple catalog items which makes sure of reusability.
So go for variable sets, may the force be with you!!
Do post if you have any more related questions.
Regards,Sushant Malsure