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

Confirm Modal not showing when user clicks on the cross icon

SA-38295

Summary



Confirm Modal is not showing when user clicks on the cross icon. When the user opens a flow in a modal dialog and makes any updates, after this if the user tries to close the window, the user is not prompted the confirm screen.


Error Messages



Not Applicable


Steps to Reproduce

  1. Open a flow in modal dialog.
  2. Make any updates.
  3. Try closing the window.
  4. Observe: the confirm screen is not prompted.


Root Cause



This is an expected behavior.

Resolution



Perform the following local-change:

Put a link in the Modal dialog and also added
an action to call "RunScript".

Script code:

<script>
function showWarning() {
alert("in show warning");
var ans = confirm("Do you want to close ?");
if (ans)
doModalAction(pega.u.d.submitModalDlgParam,event);
else
return;
}
</script>

Published June 9, 2017 - Updated October 8, 2020

Was this useful?

0% 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