UI Policy not working properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2018 12:15 PM
Hi All,
I created a few UI policies on a catalog item that are showing and hiding a few of the same variable. The issue I''m having is that the UI policies are working for some and not working for the others.. Weird, the UI policy is written correctly but it's not showing and hiding what it should be. Please help! Sometimes it works and sometimes it doesn't the behavior isn't consistent.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2018 12:37 PM
I can offer a couple of suggestions. First, check your ordering of the UI policies to be sure they are being seen in the right order. In some cases having multiple policies impacting the same fields can cause the problem.
The other is that if you are in catalog items, you might need to use catalog ui policies.
Hope that helps.
John
:{)
Helpful and Correct tags are appreciated and help others to find information faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 11:49 AM
Yes, checked both of these and I'm still experiencing issues with inconsistent behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 12:06 PM
If you have multiple UI Actions that affect the same variable, make sure your conditions are all inclusive. Meaning that your condition should be built in a way that you account for every scenario and the field values for each. It may end up looking like overkill or duplicative, but in the end it will likely work as you'd expect it to.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2018 12:13 PM
I have always found it best to never have more then 1 UI policy that affects each variable. So there have been times where I have some many scenarios for 1 variable I had 1 UI policy that only affected that variable and I used the OR to do multiple conditions. So it would look something like the below where you do And OR.