How to hide variable set on portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 12:52 AM
Requirement is we have four variable sets and two variable sets should hide on portal but should visible on catalog task.
How can we achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 12:58 AM
Hello @Pratiksha KC ,
Create a catalog UI Policy on the catalog item and check that the 'Applies to Catalog Task' value is set to true. After that, add the variable set in the UI Policy action and save it.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 01:00 AM
it's an easy requirement.
You can achieve it using either onLoad catalog client script or catalog UI policy
Ensure Applies on Catalog Item - Checked
Then hide it using script or catalog UI policy action
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 01:12 AM - edited 07-10-2025 01:22 AM
Hi @Ankur Bawiskar and @Shraddha Kadam
I tried using UI policy but it's not hiding the VS on portal can you please look into screenshots
Below are the four VS and marked two we have to hide
UI Police-
Is this because we have mandatory fields and dependency of fields under variable set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 01:17 AM
Uncheck applies on the Requested Item / Applies on Catalog Task field value and check Applies to Catalog Task' value is set to true.
Thank you.