Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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