Support Article
Clicking Cancel button displays the JavaScript warning lightbox
SA-53235
Summary
Clicking the Cancel button displays the JavaScript warning lightbox instead of the modal dialog.
Error Messages
You are about to Close an open work item which has changes that have not been saved.
Steps to Reproduce
- Open a work object
- Enter the details in Perform mode
- Click the Cancel button
Root Cause
An issue in the custom application code or rules.The requirement is to hide the default check box when the Cancel button is clicked.
Resolution
Perform the following local-change:- Add the below code in the non-autogenerated section and
<script>
pega.u.d.gDirtyOverride=false;
</script>
- Include the section into the portal harness
Published March 21, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.