UI policy not working for read only option

Arpit Ahlawat3
Kilo Contributor

UI policy set up manually for configuration item field in incident not working due to multiple policies running on the configuration item field ,How i can resolve it? I am new to ServiceNow

1 ACCEPTED SOLUTION

Hi,

I just wanted to check-in on this and see how you're doing.

If my reply above helped answer or guide you correctly, please mark it as Helpful & Correct.

Thank you!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hello,

You would want to ultimately review all those UI Policies and see if you can consolidate them and not have so many. We don't know the specifics of your situation, but that's what I would recommend.

That allows you to have a cleaner process, otherwise, you could evaluate using a client script instead.

Most likely a field doesn't become "read-only" if there is also active situations where the field is "mandatory"...so in client script you'd want to set false to the mandatory setting and then set true to the readonly.

g_form.setMandatory('field_name', false);
g_form.setReadOnly('field_name', true);

But again, ultimately, you'd want to clean up the UI Policies if you can...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi,

I just wanted to check-in on this and see how you're doing.

If my reply above helped answer or guide you correctly, please mark it as Helpful & Correct.

Thank you!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!