Skip to Main Content
Feature Request FR-5057
Product Area User Interface
Status OPEN

1 Voters

Warn user for unsaved changes when Close (X) clicked on modal page/dialog header

arif.sherkhan Public
· Oct 11 2026

Idea Summary
User should be prompted for unsaved changes when user clicks on Close (X) or ESCape in modal page/dialog. This will widen the scope of already available page level “Warn on unsaved changed” attribute, which currently works if a modal page is open and user try to refresh the page but does not work if user clicks on Close (X) or ESC button 

Use Case
Often there are scenarios where a modal page is used for application flow and processing where user will input data. 

In normal pages, if user have any unsaved changes, user is always prompted for unsaved changes if they try to leave the page be it via refresh/ESC button/browser tab close. 

But the case is not same when it comes to modal pages. If an application is using modal page for application flow where user will input data, then user may leave by clicking Close(X) or clicking ESC without ever being warned for unsaved changes resulting in data loss or redo of steps by user.

There is a non declarative way of doing this by John Snyders as referenced in one of the Oracle forums at Confirm - Dialog Close - Oracle Forums, but because this is a basic feature, which will also align modal page vs normal page behaviour, it should be declarative

Preferred Solution (Optional)
The scope of already existing page level attribute “Warn on unsaved changes” should be widened on modal pages so as to warn the user when they click on Close (X) or use keyboard Escape button

This idea is open.