Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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