- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2023 01:58 PM
How do you make the field in state in incident to be read-only in service operaiton workpac?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2023 12:26 AM
@yardenKrispel Instead of the UI Policy, you can create an onLoad client script with following configuration and it will do the job for you.
Script:
function onLoad() {
g_form.setReadOnly('state',true);
}
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2023 12:41 AM
open UI policies from left navigation and add your view by checking on that reference
after saving the form.. go to related list and add state ReadOnly in UI policy action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2023 08:38 PM
Create UI policy and uncheck "Global", you get an option to add view as Service Operations Workspace ( if required for only Service Operations Workspace view).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2023 12:15 AM
Can you explain to me how I do it here? you are welcome?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2023 12:26 AM
@yardenKrispel Instead of the UI Policy, you can create an onLoad client script with following configuration and it will do the job for you.
Script:
function onLoad() {
g_form.setReadOnly('state',true);
}
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2023 12:41 AM
open UI policies from left navigation and add your view by checking on that reference
after saving the form.. go to related list and add state ReadOnly in UI policy action