UI policy on sc_task table

Abhilash Janga1
ServiceNow Employee
ServiceNow Employee

I have created two UI policies on "sc_task" table as follows

1) Name/Short Description = Show Priority for Request Something Else

 Order = 100

When to Run = "Request item.item" is "Request Something Else"

UI policy Action = priority field to make visible

2) Name/Short Description = Show Priority for VMP & SMART

 Order = 100

When to Run = "Request item.item" is "SMART" or "Request item.item" is  "VMP"

UI policy Action = priority field to make visible & read only

 

In this case only the 2nd UI policy is resulting. i.e. Making Priority field visible & read only on 'sc_task' record where 'Request item.item' is 'SMART' or 'VMP'.

But i also want to run 1st UI policy to result Priority field to be visible on 'sc_task' record where 'Request item.item'  is 'Request Something Else'. 

Please if someone can help me with this. Whether it is possible with UI policy or should i go for Client Script?

 

1 ACCEPTED SOLUTION

AMan1997
Tera Guru

Hi,

Please see if the checkbox "Reverse if false" is true on both UI policies. Uncheck it and try again.

Thanks and Regards,

Aman 

 

 

View solution in original post

11 REPLIES 11

Ok,
Then you can write a third UI policy. And exclude the 3 requests from that like->
Request item.item <is not> abc etc.

And in ui policy actions -> make the priority field as visible - false.

This way except for the 3 requests, 'priority' will be hidden on all other requests. And if in future you want some other request to show 'priority', make sure to exclude that request in this UI policy else it will conflict.


Let me know if this works!

Thanks,

for the third UI policy should i check reverse if false checkbox? or keep it unchecked?

No, keep it unchecked to avoid any conflicts. And put the conditions as below:

 

Request item.item <is not> abc 1

AND

Request item.item <is not> abc 2

AND

Request item.item <is not> abc 3

 

Please mark the answer helpful/correct based on impact!

Thanks,

Yes Aman i tried it, its working fine even if reverse if false is checked. Should i continue with the same?

Sure, go ahead. Thank you