When updating Service Catalog requests, the following error occurs if a user fails the Write ACL on a Check box variable:
"Submit canceled due to a script error - please contact your System Administrator"

Steps to Reproduce

  1. Navigate to Service Catalog > Catalog > Hardware.
  2. Edit the Sales Laptop Item.
  3. Pick one of the checkbox variables (for example, Powerpoint) to edit.
  4. Check if the Write Roles field is visible.
    If you do not see the Write Roles field, personalize the form by right-clicking in the header bar, selecting Form Layout, and adding the Write Roles field to the form.
  5. Update the Write Roles field by adding admin.
  6. Create a request for a Sales Laptop and note the request Number.
  7. Impersonate the ITIL role.
  8. Navigate to the request.
  9. In the related list, navigate to the Requested Item.
    Note that the Powerpoint field is read-only.
  10. Try to save the record.
    Note the error that appears at the top of the form. 



Instead of restricting write access through the variable record, create a catalog client script that checks for the user's roles and disables the field. For example:

function onLoad() {

var isAdmin = g_user.hasRole('admin'); 
if (!isAdmin){ 
g_form.setReadOnly('VARIABLE_NAME', true); 

g_form.setReadOnly('VARIABLE_NAME', false); 


You can enable Applies on Catalog Tasks and A

Related Problem: PRB588744

Seen In

Berlin Patch 4
Berlin Patch 5 Hot Fix 1
Berlin Patch 6
Berlin Patch 9
Calgary Patch 1
Calgary Patch 1 Hot Fix 1
Calgary Patch 2
Calgary Patch 2 Hot Fix 14
Calgary Patch 2 Hot Fix 3
Calgary Patch 2 Hot Fix 5
Calgary Patch 3 Hot Fix 1
CCA 6 Hot Fix 2
Dublin Patch 7 Hot Fix 2
Dublin Patch 8
Eureka Patch 11 Hot Fix 2
Fuji Patch 2 Hot Fix 1
Fuji Patch 5
Fuji Patch 6
Fuji Patch 7 Hot Fix 3

Fixed In

Calgary Patch 4
Dublin EA 0
Fuji Patch 7

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-02-22 03:45:06