How can i make incident fields read only if state is closed in Agent Workspace?
function onLoad() {//Type appropriate comment here, and begin script belowvar fields = g_form.getEditableFields();alert(fields);if(g_form.getValue("state",'closed')) {for (var x = 0; x < fields.length; x++) {g_form.setReadOnly(fields[x], true);} } } ...
