Restrict approver field in Incident, Service request and release catalog items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 12:44 AM
Hi,
Currently I'm facing issue in catalog items.
I have added approver field in change catalog form using variable set. Same variable set is used for multiple catalog items. And I'm working in domain separation environment.
Now, I want to display approver field only in change catalog items and hide in remaining catalog items.
Tried with catalog UI Policy and it's only applied to particular catalog item for one domain. But, using one script I want to hide the approver field in remaining multiple catalog items for various domains.
Could anyone help me on this...
Thanks in advance.
Regards,
Gnana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2025 03:17 AM
yes this is possible.
You can use onLoad catalog client script which Applies to your Variable set
1) check the browser URL
2) you get the catalog item sysId
3) then check if the sysId is for Change catalog item and if yes then show, if not then hide it
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
04-16-2025 10:25 PM
Hi @Ankur Bawiskar ,
Thanks for the replay...
I want to restrict the field in multiple catalog items as I am working in domain separated environment.
If I use catalog item sysId then It'll applicable for only one catalog item.
Is there any alternative solution for this..?
Thanks & Regards,
Gnana Prasuna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 10:51 PM
no other way and it should not impact domain separation
That's the only and easiest way.
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
04-16-2025 10:54 PM