Notifications

1167 views

Description

UI policy and client scripts are not triggered for Printer friendly version (sysparm_media=print): hidden fields can be visible and error messages occur on the console: Uncaught TypeError: g_form._getVisibleControls is not a function

Steps to Reproduce

  1. Go to incident.list or change_request.list.

  2. Go to the context menu and choose Configure > UI policy.

  3. Create a UI policy to hide a configuration item on the incident form .

  4. Create a UI policy to hide conflict status and conflict last run on change_request form.

  5. Open any existing incident/change request.

  6. Click the gear icon in the upper right of the banner and choose Printer friendly version.

    Instead of showing the form in a PDF type format with the same fields visible on the form, all the hidden fields appear on the form.

 

Workaround

Upload the attached global sys_ui_script to to temporarily alleviate the error and override specific private client-side functions in the print template.


Related Problem: PRB1292056

Seen In

There is no data to report.

Intended Fix Version

New York

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:2019-01-08 12:43:45
Published:2018-07-19
sys_ui_script_e2c88efbc73213007bd1409b9b97634d.xml