- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 04:27 PM
Hi all,
I have created some catalog items. Since Most of them use the same variables , I have created a variable set. I want to hide a field for some of these items so I created a UI Policy on a variable set and in the catalog conditions I have mentioned that if the catalog item is A or B or C, run the UI Policy action to hide the field. The issue that I am facing is that the UI policy applies to all the catalog items using that variable set and not just to the few catalog items that I have mentioned in the condition. Any idea why this might be happening. I wanted to find out if there is a way to make this work without having to write a client script. Any suggestions?
Thanks & Regards,
Chetana
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 12:02 AM
Hi Chetana,
Normally if you create a UI policy for a Variable set then it will be applicable to all Catalog items using that variable set. So in your case you have to get the catalog item name or sys_id in a variable inside the variable set and use that variable instead of 'catalog item' field in the Catalog Conditions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 06:17 PM
Hi, try create the ui policy for each item instead of on a variable set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 06:46 PM
Yes thanks Weiwei. I had created UI policy for individual items and that worked. I wanted to know if there is a way to achieve this without having to create multiple UI policies. I found out why my UI Policy is not working. Its because the condition will run only when the field is on the form. Below are my conditions in my UI Policy. ' Catalog item' field should be on the catalog form for the policy to work. I am unable to get this field on the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 10:10 PM
Chetana,
Catalog Ui Policy works only on variables. So even if you select condition fields which are not variables, these will not work for you.
Check bullet point 2 in the documentation
You have to define the ui policies for individual variables.
Thanks
Shouvik
PS: Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2016 07:43 AM
Thanks for the document Shouvik. Correct me if I am wrong but what I understood from the document is that UI Policy for a variable will work on both catalog item and variable set as long as the variables used in select field condition are on the form