Question

Cancel button in the modal dialog not working as expected
Hello Everyone,
I'm using Pega 7.2.2 and I have got a requirement to display a warn/alert popup upon click of a button and depending on user's action it would proceed further. I have defined a local action where I have configured the flow action for displaying the warning and after that I have configured the rest of the logic (data transform, activity etc.) below that. The problem is irrespective of whether I click on Cancel, Submit or cross mark on the top of the modal dialog it proceeds with the action set. I want to exit the action set if the user clicks on cross mark or cancel button. Any help would be much appreciated. Attached few screengrabs for reference, the one marked in yellow is the alert for warning and the rest are part of the actual logic if the user clicks on submit.
Cheers