Issue
Symptoms
Error : onSubmit script error: ReferenceError: func is not defined
Cannot save or submit Catalog Tasks
Cannot save or submit Requested Items
Cause
Custom onSubmit or onChange client script on the associated catalog item.
The client script contains invalid element that cannot be found on catalog task or RITM form but the checkboxes 'Applies on Requested Items' or 'Applies on Catalog Tasks' are ticked
Resolution
Issue can happen due to a custom onSubmit or onChange client script on the Catalog item.
Check for custom client scripts on the catalog item and see if the variables should be present in Requested Item or Catalog Task
If not, untick checkboxes 'Applies on Requested Items' or 'Applies on Catalog Tasks' on the client script
Save