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.
UI Actions on Related List stuck loading and throwing error - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • UI Actions on Related List stuck loading and throwing error
KB0695194

UI Actions on Related List stuck loading and throwing error


1383 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Symptoms


When using a UI Action on a related list using a GlideDialogWindow, you may encounter where the dialog window will not fully load

showing an image similar to what you see below with most likely a different title.

There will also be an error thrown in the console similar to this:

Uncaught TypeError: Cannot read property 'getChecked' of undefined

 

 

Cause


This is happening because the reference to the g_list is being used in the get() method of GlideList2 within the UI Action.

This would look like this:  GlideList2.get(g_list);

This will work on lists, but not on related lists.

Resolution


There is a simple fix to this, which is to instead reference the listID of the g_list.

Depending on what is the need there are many ways of doing this. An example looks like this:

 

var listID = g_list.listID;

var list = Glidelist2.get(listID);

 

This will allow the record that the related list is on to perform GlideList2 methods, such as getChecked().

 


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.