UI Policy on Related Fields

Mark_Didrikson
ServiceNow Employee
ServiceNow Employee

Do UI Policies work on on Related Fields? For example, on Change Task, we want to sent some fields as read-only if the State of the parent Change Request is updated. Doesn't seem to work.

Thanks!

2 REPLIES 2

peter_oneppo1
Kilo Contributor

Mark,

UI Policies for related fields will work, but they can be a bit tricky because everything is done client-side. This means any field value you want to include in a UI Policy condition needs to be a field on the form. For your example to work, you'll need to add the State of the Change Request to the Change Task form. You can hide it using a UI Policy if you don't want it to actually show. Once the field is on the form, the condition for your other UI Policies will work.

Hope that helps!


Mark_Didrikson
ServiceNow Employee
ServiceNow Employee

Thanks! That's a good tip.