Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Cannot save or close HR cases - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Cannot save or close HR cases
KB0825319

Cannot save or close HR cases


1304 Views Last updated : Jun 9, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Cannot save or close HR cases. Below error message:

onSubmit script error: TypeError: Cannot read property 'display' of undefined: function() { saveAllSelected([ gel(id) ], [ gel(ref) ], ',', '\\', '--None--'); }

Release

Any

Cause

This can be caused by duplicate variables on the form

Usually caused by a custom widget or business rule and scripts

Resolution

1) Check the variables on the form if duplicated.

2) Remove the variable editor on the form 

How to Configure Form: https://docs.servicenow.com/csh?topicname=configure-form-layout.html&version=latest

 

OR

 

1) Remove duplicate variables by going to the [question_answer] table - https://<instance_name>.service-now.com/question_answer_list.do

* This table is where the submitted Record producer variables are stored

2) Filter table_sys_id=<record_sys_id>

3) Check if there are duplicate variables and remove the duplicates in this table

If you are encountering the issue on REQ/RITM/SCTASK, the variable submitted are stored in the tables [sc_item_option_mtom] and [sc_item_option], so you can check these tables and remove the duplicates here instead

 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.