Mark fields read-only for a specific view

G Balaji
Kilo Guru

Hello,

We've a requirement to set few reference fields as read-only for a specific view. 

Which is the best practice to implement this?

Thanks.

 

1 ACCEPTED SOLUTION

Alexey7
Mega Sage

Create UI Policy and apply it for a specific view. You can also use a client script, but UI Policy is easier to configure for users without scripting experience.

Hope it helps.

View solution in original post

5 REPLIES 5

Alexey7
Mega Sage

Create UI Policy and apply it for a specific view. You can also use a client script, but UI Policy is easier to configure for users without scripting experience.

Hope it helps.

Ashok Katam
Mega Guru

Hi

Below thread will be helpful, you can get the view name onLoad of the form and set the necessary fields ReadOnly.

https://community.servicenow.com/community?id=community_question&sys_id=33934b65dbd8dbc01dcaf3231f961986&view_source=searchResult

Varsha21
Giga Guru

Hi ,

write client script like following,

just you should write condition as per your requirement,i have mentioned view name as Fields

find_real_file.png

it will make field read only

find_real_file.png

varsha

G Balaji
Kilo Guru

we implemented this using UI policy and it seems the best practice as well.

Thanks for the response.