How to edit variables from variable editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2021 10:17 AM
In service catalog all variables are read only in variable editor.. I need to edit one variable in task ..I created UI policy which apply on task and also tried creating client script but nothing works out.. can anyone explain what we can do for making one variable editable in task.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2021 10:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2021 10:34 AM
You can check all these conditions. OOB variable editor is writable.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0718582
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2021 10:41 AM
Hi Santhosh,
There might be onload client script which will run on RITM and SC_task
function onLoad() {
$("variable_map").querySelectorAll("item").forEach(function(item){
var variable = item.getAttribute("qname");
if(variable !='xyz'){ // to make perticular variable editable
g_form.setReadOnly("variables."+ variable, true);
});
}
Or UI policy which will run on RITM and Task
g_form.setVariablesReadOnly(true); //this will make variable section readonly
Thanks,
RJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2025 06:28 AM
Hi, did you find any solution for this?