
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 03:12 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 10:39 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 03:32 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 04:16 AM
Thank you Apeksha. I tried with onsubmit client script after form loading fields are getting editable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 04:45 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 03:34 AM
Hi Anil
Please see below just simply put the condition over there that is ---(state) is (completed).
Please Mark correct and Helpful, If this helps you in any way thanks in advance
Saurabh