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 02:30 AM
Yes, we have mandatory variables inside the variable set.
How can we achieve the output in this case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 02:34 AM
Hello @Pratiksha KC, you have to make them non-mandatory first and then use your UI policy. your UI policy looks fine. Imagine if any variable is mandatory and you hide this, your Item will not qualify for submission.
Regards,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 02:36 AM
other variables within that variable set are mandatory -> doesn't matter
Only thing matters is the variables which you are trying to hide are made mandatory by some other UI policy
If yes then check that as it's a conflicting requirement.
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 02:37 AM
Hello @Pratiksha KC ,
Create one more UI Policy for making variables non mandatory and then use your existing UI Policy.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 02:37 AM
Or you can use same UI Policy that will also work
Thank you.