707 views

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

Seen In

Fuji Patch 9 Hot Fix 1

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-09-20 05:42:00
Published:2017-09-20