- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2022 08:11 PM
Hello Now
We have Variable set called "Location Info" and that Variable set is Included in 400 Items
We have one Variable called "Geography" which we want to show for one particular item and Hide it to remaining Items
We want to achieve this through No scripting with UI Policies ,Can these done through UI Policies ?
We have already sol with Onload script but we want to go with UI Policies
Please suggest no scripting way
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2022 08:37 PM
Hi,
Since you want to hide for all other catalog items you cannot create multiple Catalog UI policies on those catalog items
So go with onLoad client script
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2022 08:33 PM
Hi,
I don't think you can use UI policy for this
1) if you use Catalog UI policies which applies to variable set then it would apply for all items
Did you try to use Catalog UI policy which Applies to particular Catalog Item and try selecting variable within that variable set.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2022 08:37 PM
Hi,
Since you want to hide for all other catalog items you cannot create multiple Catalog UI policies on those catalog items
So go with onLoad client script
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2022 08:40 AM
Did you get a chance to check on my above approach?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2022 08:36 PM
Hi,
You can write UI policy on variable set to hide for all items and write a client script on Catalog item level to make it visible for specific item.
Thanks,
Sumit