var fields = g_form.getEditableFields(); for (var x = 0; x < fields.length; x++) { g_form.setReadOnly(fields[x], true); }
Make all form fields read-only (client script) ServiceNow
admin Changed status to publish December 26, 2023
var fields = g_form.getEditableFields(); for (var x = 0; x < fields.length; x++) { g_form.setReadOnly(fields[x], true); }