- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 04:21 AM
Hi,
I have a requirement. In a Service Catalog, hide a variable at the form level and display it at the RITM and SC_TASK level. Can anyone please give me any suggestions? Kindly help.
Regards
Suman P.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 06:00 AM
Hi,
Your answers are only partially true. This is what worked.
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 06:06 AM
May I know how my response is partially correct.
Your original question was to hide the variable at catalog form level and show on RITM and SC Task
For that I mentioned to use Catalog UI policy which applies on Catalog Form only and hide
This catalog ui policy won't run on RITM and SC Task and hence it won't hide.
Why you require 1 catalog UI policy and 1 catalog client script? -> Not required ideally
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
05-20-2025 06:06 AM
May I know how my response is partially correct.
Your original question was to hide the variable at catalog form level and show on RITM and SC Task
For that I mentioned to use Catalog UI policy which applies on Catalog Form only and hide
This catalog ui policy won't run on RITM and SC Task and hence it won't hide.
Why you require 1 catalog UI policy and 1 catalog client script? -> Not required ideally
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
05-20-2025 06:10 AM - edited 05-20-2025 06:11 AM
Hi @Ankur Bawiskar,
Initially I didn't write client script at all. I just used the UI Policy, but it didn't hide at the form level.
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 06:13 AM
it didn't hide at form level, possibly because there must be some other catalog ui policy with higher order which is showing it and hence it overridden the one you created to hide it.
Other wise the approach I shared should work fine.
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