state_ readOnly

yardenKrispel
Tera Contributor

How do you make the field in state in incident to be read-only in service operaiton workpac?

2 ACCEPTED SOLUTIONS

@yardenKrispel Instead of the UI Policy, you can create an onLoad client script with following configuration and it will do the job for you.

 

Screenshot 2023-11-20 at 1.53.08 PM.png

Script:

 

function onLoad() {
   g_form.setReadOnly('state',true);
}

Hope this helps.

View solution in original post

Hi @yardenKrispel 

open UI policies from left navigation and add your view by checking on that reference 

 

yaswanthi2_1-1700469568894.png

after saving the form.. go to related list and add state ReadOnly in UI policy action

yaswanthi2_2-1700469636502.png

 

 

View solution in original post

5 REPLIES 5

yaswanthi2
Giga Sage

Hi @yardenKrispel 

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).

Can you explain to me how I do it here? you are welcome?  

yardenKrispel_0-1700468127724.png

 

@yardenKrispel Instead of the UI Policy, you can create an onLoad client script with following configuration and it will do the job for you.

 

Screenshot 2023-11-20 at 1.53.08 PM.png

Script:

 

function onLoad() {
   g_form.setReadOnly('state',true);
}

Hope this helps.

Hi @yardenKrispel 

open UI policies from left navigation and add your view by checking on that reference 

 

yaswanthi2_1-1700469568894.png

after saving the form.. go to related list and add state ReadOnly in UI policy action

yaswanthi2_2-1700469636502.png