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

Apeksha Joshi
Kilo Guru

Hi anil ,

write an onsubmit client script on the problem table so that after submitting the fields will get read-only .

hope this helps !

Mark my answer correct / helpful based on impact .

Regards,

Apeksha

Thank you Apeksha. I tried with onsubmit client script after form loading fields are getting editable.

 

Hi Anil,

when you submit the form would load and again it would be editable; either use ACL approach or use onload client script if you require this to work when form loads and state is completed

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

Saurabh singh4
Kilo Guru

Hi Anil

Please see below just simply put the condition over there that is ---(state) is (completed).

 

find_real_file.png

 

 

 

Please Mark correct and Helpful, If this helps you in any way thanks in advance

Saurabh