How to display a dialog box when I close the popup
Application Type
Traditional Web

When I close a popup window in Traditional Web application, I want to display a dialog box to ask if I want the edited content to discard, but when I press the Cancel button, the popup closes.

I would like to know how to prevent closing the popup when the cancel button is pressed.

Or, if there is no way to fix this problem, I would like to know an alternative way to notify those information.



Hi Yuki,

I have made some changes in your OML, Instead of using popup you can use modal preview, it will also reduce your AO's . You can find it in PopupDemo screen in OML file,

Hope this help,

Regards,

Komal

ConfirmDiscardingnew.oml

Hi,

Is it possible for you to share your OML ?

Regards, 

Komal

Hi Komal,

I've attached the OML.

I hope this helps!


ConfirmDiscarding.oml


Hi Yuki,

I have made some changes in your OML, Instead of using popup you can use modal preview, it will also reduce your AO's . You can find it in PopupDemo screen in OML file,

Hope this help,

Regards,

Komal

ConfirmDiscardingnew.oml

You're Welcome !!

Is your issue resolved Yuki?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.