read-only fields

hadron_collider
Tera Contributor

hello,

 

 

how can I check what actually sets the fields to read-only on a form?

kata90_0-1704720888402.png

I checked the client scripts for the table and did not find anything that would set it to readonly.

 

6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Could be multiple things, Access Controls, UI Policies, Client Scripts, etc..

 

Personally I like to first check if its server side or client side. An easy check for this is to reload the screen, is the field briefly not read-only and than quickly changes to read-only? If so: client side. It the field is immediately read-only on reload: server side. 

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Ankur Bawiskar
Tera Patron
Tera Patron

@hadron_collider 

things to check

1) dictionary read-only

2) client script

3) ui policy

4) data policy which runs as UI policy on client side

5) UI script

6) ACLs

You can use field watcher to inspect the particular field

Field watcher 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@hadron_collider 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Jean-Emmanuel
Tera Guru

Hi @hadron_collider ,

Please have a look at Field watcher feature

 

**Please mark my answer helpful or correct if it applies. 😉

 

Thank you!
JE