- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 04:31 AM
Hi,
I'm struggling to get a name-value pairs type field to be read-only on a form:
Using a UI policy doesn't work, and I've tried a few variations of client scripts (based upon a search on here), including some that do DOM manipulation, but nothing seems to work!
Has anyone managed to do this (I'm on Vancouver).
Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 04:39 AM
@Community Alums Did you try making the field read only via a write ACL?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 04:39 AM
@Community Alums Did you try making the field read only via a write ACL?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 06:30 AM
Yes, I have done it via ACL, but would have preferred to do it via a UI policy!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 06:39 AM
@Community Alums Unfortunately, making a key value pair field read only is not supported via UI Policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 04:40 AM - edited 01-28-2025 04:41 AM
@Community Alums
Field level WRITE ACL is the only way.
Client script or UI policies don't work for Name-value field type
OR
you can try to use DOM manipulation and even if it works I won't recommend that as it's not a best practice.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader