- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2019 06:32 AM
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.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2019 06:38 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2019 06:38 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2019 06:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2019 07:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2019 01:51 AM
we implemented this using UI policy and it seems the best practice as well.
Thanks for the response.