On Kingston g_form.setVariablesReadOnly(true); script on task is no longer working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2018 08:04 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2018 10:42 AM
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!