Read only variables on RITM

Ramesh_143
Giga Guru

How to set the variables read only on RITM record?

2 ACCEPTED SOLUTIONS

VishaalRanS
Tera Guru

Hi @Ramesh_143 

 

To set variables as read-only on a Request Item (RITM) record in ServiceNow, you can utilize client scripts or UI policies.

 

Please go through the below link:

Set Variables readonly on RITM - ServiceNow Community

Solved: How to set all variables read only on RITM - ServiceNow Community

 

Thanks, and Regards

Vishaal

Please mark this response as correct or helpful if it assisted you with your question.

 

View solution in original post

Sai Krishna6147
Mega Guru

Hi @Ramesh_143 

you can  achieve by using UI policy,

please refer the link :

Refer: Solved: How to set all variables read only on RITM - ServiceNow Community 

Mark my answer as accepted solution and helpful if helps you.

Thank you

View solution in original post

7 REPLIES 7

Sai Krishna6147
Mega Guru

Hi @Ramesh_143 

you can  achieve by using UI policy,

please refer the link :

Refer: Solved: How to set all variables read only on RITM - ServiceNow Community 

Mark my answer as accepted solution and helpful if helps you.

Thank you

Manohararuna
Tera Contributor

Hello Ramesh,

 

       Fir that we can use the UI Policy / client script based on our major requirement.

Here i have attached one example (i can make Assignment group read only when the Subcatogry value is Antivirus).

Manohararuna_0-1728030338914.png

Thanks ,

 Manohar.

thullurishalini
Kilo Guru

Hi @Ramesh_143 

To set variables as read-only on a RITM (Request Item) record in ServiceNow, follow these steps:

  1. Navigate to the RITM Form: Open the RITM record where you want to set the variables as read-only.
  2. Create a Catalog Client Script: Use a catalog client script to set the variables to read-only. Here is an example script:
    function onLoad() {
        g_form.setVariablesReadOnly(true);
    }
  3. Apply the Script: Ensure the script is applied to the appropriate catalog item or variable set.
    Please mark this response as correct or helpful if it assisted you with your question.

Thanks,

shalini.