Catalog UI Policies not working on the Service Portal

Ben Smith
Giga Contributor

I have a simple Catalog UI Policy (fields are hidden if a particular value is selected in a dropdown box) that is not working on the Service Portal. When the Requested Item is created the Catalog UI Policy works properly if an ITIL user triggers it. Is this common behaviour?

1 ACCEPTED SOLUTION

I've managed to figure it out. I had the fields set as Mandatory which was preventing them from being hidden. I've updated the UI Policy to modify that setting when triggered as well which has fixed the issue

View solution in original post

5 REPLIES 5

sachin_namjoshi
Kilo Patron
Kilo Patron

 you should check to make sure that the script or UI policy is set to run in both UI types via the dropdown on the policy/script.

 

Regards,

Sachin

I have it applying on Catalog Item view, Catalog Tasks and Requested Items. If I tick the Run Scripts checkbox on the Script tab the Run Scripts in UI Type is set to All.

Is that what you are referring to or am I missing another setting?

Yes, i was referring to UI type. You are good on this part if UI type is set to ALL.

Do you see any errors in console with regards to this UI policy?

 

did you try to convert this UI policy into onload client script to verify results?

 

Regards,

Sachin

 

In the browser console I can see the fields showing up as being hidden but they are still showing.

The Catalog UI Policy works if fulfillers trigger it on the back end so I'm fairly confident that the trigger/actions are correct. Will changing it to an onload client script show anything that would explain why it doesn't work on the Service Portal?