Set all fields read only when state is completed

Anil74
Tera Guru

Hi All,

I wrote a UI  policy to make all fields read-only when the problem state is completed. But while changing the state only all fields are getting read-only. As per the requirement after saving the form fields should become read-only. Please help me with this.

Thanks in advance.

1 ACCEPTED SOLUTION

Nootan
ServiceNow Employee
ServiceNow Employee

Hi Anil,

You can use this condition for problem_task

find_real_file.png

Thanks

View solution in original post

12 REPLIES 12

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Anil,

ACL would be the best approach

Table level WRITE ACL with condition as state is not completed; check something similar to this

https://your-instance.service-now.com/sys_security_acl.do?sys_id=66ec26370a0a0b0100a67b597d415b84&sysparm_view=&sysparm_domain=null&sysparm_domain_scope=null&sysparm_record_row=1&sysparm_record_rows=2&sysparm_record_list=operation%3dwrite%5ename%3dincident%5eORDERBYname

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Nootan
ServiceNow Employee
ServiceNow Employee

Hi Anil,

In UI Policy, For Condition use problem_state field for checking closed state instead of state field.

find_real_file.png

Thanks

Thank you Nootan. It is working on problem.

Need to implement same on problem task. can you please suggest.

Nootan
ServiceNow Employee
ServiceNow Employee

Hi Anil,

There is no such field for problem_task so this can be implemented with onLoad client script (this approach is limited to form view only) or an ACL

Thanks

Nootan
ServiceNow Employee
ServiceNow Employee

Hi Anil,

You can use this condition for problem_task

find_real_file.png

Thanks