
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2019 11:34 PM
Hi ,
Can any help to create I want make editable variable fields on RITMS.
Any way to do it.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2019 11:44 PM
Hi ,
I found the way i need to resolved .
function onLoad() {
if(g_form.getValue('cat_item')!='sys id of catalog item' && !g_user.hasRole('itil'))
g_form.setVariablesReadOnly(true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2019 04:20 AM
Hi,
You can use below script:
You can use below client script onLoad on Requested Item table:
function onLoad() {
if(document.getElementById('variable_map')){
$(variable_map).select("item").each(function (elmt){
try {
g_form.setDisabled('variables.' + elmt.getAttribute('qname'),false);
} catch (err) {
}
});
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2019 11:44 PM
Hi ,
I found the way i need to resolved .
function onLoad() {
if(g_form.getValue('cat_item')!='sys id of catalog item' && !g_user.hasRole('itil'))
g_form.setVariablesReadOnly(true);
}