setVariablesReadOnly method is not working correctly for all variables in Variable Editor

Linda5
Tera Expert

Trying to make a Variable Editor on the table read-only for a specific record prodcuer.

I have created a catalog UI Policy and in the "execute if true" I put :

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

This works correctly ,it makes all variables ready only but sometimes after refreshing the browser , some variables will stop being read only and then after refreshing a second time they will be ready only again. I have already cleared my web browser's cache and cookies. What could be the reason?

1 ACCEPTED SOLUTION

_Gaurav
Kilo Sage

Hi @Linda5 
Please check the order of the script, there might be other scripts running before this which makes the field editable.

Please mark helpful if this resolves your query.
Thanks!

View solution in original post

2 REPLIES 2

_Gaurav
Kilo Sage

Hi @Linda5 
Please check the order of the script, there might be other scripts running before this which makes the field editable.

Please mark helpful if this resolves your query.
Thanks!

Hi @_Gaurav ,

Yes ,that worked , thank you !