Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Dirty popup behavior is inconsistent



In a screen dirty modal displays as a window alert and in another screen the modal dialog displays. This occurs in the Chrome browser.

Error Messages

Not Applicable

Steps to Reproduce

Not Applicable

Root Cause

A defect in Pegasystems’ code or rules :

The issue occurred because the below code was used in closeWork API in pzpega_ui_doc_lifecycle js 

event = event == undefined ? window.event : event;

window.event does not display in some cases in Chrome due to which a browser alert is displayed.

Chrome (Non-working):

Internet Explorer(working):


Perform the following local-change:

In the UserWorkForm, override pega.u.d.isFormDirty as below,

pega.u.d.isFormDirty = function(bPrompt, fromCloseWork, ev, onlyMdcDocs) {
    ev = ev || {};   added this extra line in overriden function ....


Published December 4, 2018 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us