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
- Open a flow in modal dialog.
- Make any updates.
- Try closing the window.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.