24 views

Description

When accessing the printer friendly page of a record that has a variable editor, if a UI Policy or Client Script targeting a Multi Line Text variable is set to mandatory or readonly the page will break, meaning other UI Policies or Client Scripts might not run correctly.

The following console errors are displayed on the page:
- Uncaught TypeError: Cannoy read property 'id' of null
- Uncaught ReferenceError: $j is not defined

Steps to Reproduce

  1. Create a new catalog item with the following variable configuration, ensuring the order is defined:

    • Variable 1 - Single Line Text
    • Variable 2 - Multi Line Text
    • Variable 3 - Single Line Text
    • Variable 4 - Single Line Text
  2. Create separate Catalog UI Policies to target each of the variables and create Catalog UI Policy Actions to hide them on load. Make sure this applies to Task and RITM.

  3. Ensure that each Catalog UI Policy has an order defined (that is, 100, 200, 300, ...).

  4. For the Catalog UI Policy targeting the Multi Line Text variable, configure the Catalog UI Policy Action to either Set mandatory or Set readonly instead of Hide.

  5. Open the newly created item and submit it.

  6. Navigate to the printer friendly page of the RITM record.

    Variables underneath the Multi Line Text should be hidden within the printer friendly page of the RITM but they display and console errors appear in the page.

 

 

Workaround

Depending on the complexity of the catalog item and variables associated, moving the UI Policy order to be the last one to load for the 'Multi Line Text' variable may work as an interim measure. The console error will still display.


Related Problem: PRB1286273

Seen In

There is no data to report.

Intended Fix Version

Madrid

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-06-12 21:28:53
Published:2018-06-07