Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to access Catalog Variables within client scripts of records produced?

benbenjamin
Mega Contributor

currently, I have demand records that contain catalog variables generated from the form of a record producer. I need a way to make these variables read-only inside the demand records, is this a supported feature in ServiceNow?

1 ACCEPTED SOLUTION

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

You should be able to use a client script using the following syntax:


g_form.setReadOnly('variables.VARIABLENAME', true);


View solution in original post

4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

You should be able to use a client script using the following syntax:


g_form.setReadOnly('variables.VARIABLENAME', true);


Thank you Michael, it worked!


vaibhav_1803
Tera Contributor

 

 

g_form.setReadOnly('variables.VARIABLENAME', true);