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.
A catalog client script that applies on the RITM also incorrectly applies on the catalog task when the RITM popup loads after hovering over the RITM reference field. - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • A catalog client script that applies on the RITM also incorrectly applies on the catalog task when the RITM popup loads after hovering over the RITM reference field.
KB0564323

A catalog client script that applies on the RITM also incorrectly applies on the catalog task when the RITM popup loads after hovering over the RITM reference field.


6270 Views Last updated : Dec 27, 2024 public Copy Permalink
KB Summary by Now Assist

Description

A catalog client script that applies on the RITM also incorrectly applies on the catalog task when the RITM popup loads after hovering over the RITM reference field.

Steps to Reproduce

  1. Create an Onload Catalog client script as follows:

    ?function onLoad() {
       //spe is the name of a Multi Line Text variable (screenshot attached)
       g_form.setDisplay('spe', false);    
    }
    - Applies on Requested Items
    - Catalog Item: Email Account


  2. Open any catalog task related to the Service Catalog Item Email account, for example, https://emppnavarro3.service-now.com/nav_to.do?uri=sc_task.do?sys_id=d211712f4fd771002167a5017310c726.

    Notice that the Special Requirements variable field is displayed.

  3. Hover over the Requested Item reference icon

    The RITM popup displays. The Special Requirements variable field is hidden on the catalog task form.

    The Special Requirements field should appear on the catalog task form and be hidden only on the RITM popup form.

Workaround

As a workaround, create a sys_popup view for RITM, and remove the Variable Editor from the view.

Note that this behavior is by design. The client script sets the display value of a variable that is in the popup for the RITM. It is not changing the value in the Catalog Task. In the popup there is no way to restrict the client script to run only inside the popup context.

For more information, see the Customizing the reference icon.

 


Related Problem: PRB657126

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?

Attachments

Attachments

  • Multi_line_text_variable.JPG
  • catalog task.JPG
  • catalog_client_script.jpg
  • catalog_client_script.jpg
  • catalog_task_RITMpopup (1).JPG
  • catalog_task_RITMpopup.JPG
  • Multi_line_text_variable.JPG
  • catalog task.JPG

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.