Set variable set to read only on change request created from a record producer

DreDay3000
Giga Guru

Hello, I have a variable set on a change request that I would like to show as read only. I have set the variables within the variable set to read only but this does not work for the entire variable set. Grey out the section on the right like the section on the left. Any help is greatly appreciated

 

DreDay3000_1-1749572353309.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@DreDay3000 

what do you mean by it doesn't work for entire variable set?

you can use this line in onLoad client script on change_request table

function onLoad() {
    g_form.setVariablesReadOnly(true);
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@DreDay3000 

what do you mean by it doesn't work for entire variable set?

you can use this line in onLoad client script on change_request table

function onLoad() {
    g_form.setVariablesReadOnly(true);
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader