Make all variables on a RITM go from editable to read only once the RITM is closed

charles1010
Tera Contributor

Hi, I want to have all the variables on the RITM to be editable, but once the RITM is closed then all the variables will then be read only. Thanks in advance. 

1 ACCEPTED SOLUTION

Valmik Patil1
Kilo Sage

Hello @charles1010 ,

 

Create catalog client script onload and use below code

 

if(g_form.getValue('state') == '3'){ // 3 means closed complete check in your choice table whether it is same

g_form.setVariablesReadOnly(true); // mark all variables as readonly

}

Thanks,

Valmik Patil

 

View solution in original post

2 REPLIES 2

Valmik Patil1
Kilo Sage

Hello @charles1010 ,

 

Create catalog client script onload and use below code

 

if(g_form.getValue('state') == '3'){ // 3 means closed complete check in your choice table whether it is same

g_form.setVariablesReadOnly(true); // mark all variables as readonly

}

Thanks,

Valmik Patil

 

Valmik Patil1
Kilo Sage

Hello @charles1010 ,

 

Create catalog client script on load and use below code

 

if(g_form.getValue('state') == '3'){ // 3 means closed complete check in your choice table whether it is same

g_form.setVariablesReadOnly(true); // mark all variables as readonly

}

Thanks,

Valmik Patil