Hiding varible in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 05:09 AM
Hi Community
I was facing issue in hiding one varibel.
I have 3 catlog item which are using same varibel set and i want hide one varibel in only one catlog item not in all. In the varible set there in one UI policy is there which work like if i select yes in another varibel then only that varibel is shows and i want to hide that varible. I tried with both ui policy and client script but its still show.
May be the UI policy which is available in the varible set is override my UI policy or client script at my catlog item level.
How can i hide that varible in only one catlog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 05:15 AM
Hi @rahulkhande
Did you try using a condition in the UI policy to map the item? It should work if that’s available. If not, it’s better to create a separate variable.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 05:19 AM
in your onLoad catalog client script check the URL and it will contain catalog item sysId
Based on that you can handle the logic and ensure it hides it only in 1 catalog item
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
06-15-2025 07:39 PM
Hope you are doing good.
Did my reply answer your question?
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