On Kingston g_form.setVariablesReadOnly(true); script on task is no longer working

kkingsle
Tera Expert

We're in the process of upgrading from Helskini (Patch12) to Kingston (Patch2).  We have a standard variable set with am  Onload client script to lock down all variables on a Catalog task from to read only, which basically only includes  g_form.setVariablesReadOnly(true);  (there is an additional line to  a specific variable to g_form.setReadOnly(false);

 I can't find any reference to that g_form in the documentation, but this was working in Helsinki, but not in Kingston.  Is this expected behavior?

 

There was a comment in another thread about this working on the Item, but not task and I posted a comment there, but haven't gotten any clarification yet.

5 REPLIES 5

My Hi ticket yielded a variation of your script and its working fine:

 

$('variable_map').select("item").each(function (elmt){
g_form.setReadOnly('variables.' + elmt.getAttribute('qname'),true);
}
);

 

Thanks!