Can we change the particular variable in RITM when it is loaded

Saisanjana Pinn
Tera Contributor

I have a requirement for changing the user details feild in the RITM when we load the RITM. The current user details need to be updated in that variable. The variable type we are using is Multi line text.

 

 

10 REPLIES 10

I am not sure what business value this will add, This is not a very strong logic tbh.

But if it is just for learning, of this is what you want  then follow the below

 

You can make the field read only by a catalog ui policy that runs on RITM.

 

Onload Client script to populate the variable , something like 

 

var newData = g_form.getValue('variables.<variable name>');
newData = newData + ' ; New User ' +g_user.userName;
g_form.setValue('variables.<variable name>', newData);

 

-Anurag