- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2021 02:56 AM
Hello Community,
Can anyone help us.
We have variable set with few variables and we are this variable set for couple of catalog items,
Our case we want hide particular variable in one catalog item how to do this tried with catalog client script onload and ui policy and it's not working still visible in portal Can anyone help us with solution for this
Please note this variable is mandatory in variable set
Thanks,
Nagesh
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2021 03:25 AM
Hey! Using a catalog ui policy should be the easiest solution. Set the catalog ui policy to apply on the specific catalog item, build your condition (leave empty if it should always apply) and then use an UI policy action where you set the variable from the variable set to Mandatory -> false and Visible -> false. The other attributes can stay with "Leave alone".
This should work in Service Portal as well.
The UI policy action could look like this: (Standard Employee Questions is the variable set in this example)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2023 09:20 AM
it was in only one catalog item. if it would be used in more than one, then should it be according to your solution? Correct me if i am wrong thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2023 11:21 AM
It shouldn't matter how many Catalog Items are using the variable set. But you have to make sure that the variable set is related to the Catalog Item. Check the "Included in" Related list on the Variable Set record:
Also as I said, make sure there are variables in the set.
Then, once you have added the Catalog Item to the above, you should be able to create a Catalog UI Policy for that Item and in the actions see the variables from the variable set as well as variables only present on the Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2024 06:31 AM
It is not working for me.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2024 07:32 AM
Hi Keerthi, please post your question with a little detail in a new thread as this one is already answered. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2021 05:39 AM
and visa versa how to make visible variable from variable set for particular item?