UI Policy doesn't work on RITM only

Joanna17
Tera Contributor

Hi everyone!

I want some variables to be visible only on the task level (so hidden for Catalog Item and RITM).

I used "Reverse if false" function on advanced UI Policy view, selected "Apply on Catalog Item view" and "Apply on RITM view" checkboxes, Apply on task view kept unselected,

mandatory and visible = false, read only = leave alone

Variables used in the policy are not part of any other policy or script (no client scripts included in that Catalog Item)

The policy is being applied as expected on the Catalog Item level (variables are hidden), on the task level (variables are visible and mandatory) but somehow it's not working on RITM (variables are visible and mandatory)

Anyone knows what may cause sth like that?

Thanks a lot for your help!

9 REPLIES 9

deepakgarg
ServiceNow Employee
ServiceNow Employee

Do you see any error on browser console?



Thanks,
Deepak.


Hello Deepak,



Sth like that: ui_policy.jsx?v=06-05-2016_1542:722 Uncaught TypeError: g_form.getAppliedFieldName is not a function


deepakgarg
ServiceNow Employee
ServiceNow Employee

Hi Joanna,



This is a known error. Please refer to this KB article for the same:


ServiceNow KB: PRB686241: Catalog UI policy on a new variable on a catalog item causes error on exis...



Thanks,


Deepak.


PS: Hit like, Helpful or Correct depending on the impact of the response.


deepakgarg
ServiceNow Employee
ServiceNow Employee

This is breaking the UI policy flow. This might also be helpful:


Error: g_form.getAppliedFieldName is not a function in Helsenki



Also, this has been fixed Helsinki Patch3.



Thanks,


Deepak.


PS: Hit like, Helpful or Correct depending on the impact of the response.