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.



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

SR - Security - Support Common - Madrid 2019 Q2
SR - Security - Support Orchestration - Madrid 2019 Q2
SR - SIR - Security Incident Response - Madrid 2019 Q2
SR - SIR - Store Threat Core - Madrid 2019 Q2
SR - SIR - Store Trusted Security Circles Client - New York 2019 Q3

Fixed In

New York

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-11-28 19:54:48