'Suspend Dialog Box' client script on the sn_hr_core_case table can produces the following error when viewing in printer friendly view.

onChange script error: TypeError: g_form.isLiveUpdating is not a function function () { [native code] }

The issue is caused by an onchange client script named "Suspend Dialog Box" on the HR Case form invoking g_form.isLiveUpdating() API, which is not defined in the printer friendly view.

Steps to Reproduce

  1. Install Human Resources Scoped App: Core plugin on a London
  2. Open any existing HR Case case (or create one).
  3. Create a "print" view and add only state field to it.
  4. On the form, change the view to newly created "print" view and go to setting and click on "Printer Friendly version" button to open printer friendly view.
  5. See that an error message is visible in red below the "State" field


In Client script 'Suspend Dialog Box' (sys_id=165541030b6022006ec86f3ef6673afa), change the following expression



typeof g_form.isLiveUpdating === 'function' && g_form.isLiveUpdating()

This will make sure that the function API is defined before trying to call it.

Related Problem: PRB1304924

Seen In


Intended Fix Version


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-10-11 08:05:33