Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Why is javascript:window.close(); or "Close Dialog" process not closing the page after Submit?

APEX_DOUCESep 22 2021 — edited Sep 22 2021

I have a form page that needs to close the page after a user selects "Cancel" or "Submit."
When I access the page from page designer all methods suggested (javascript & Close Dialog) close the page just fine. But, when I attempt to access the page normally no method will close the page from button select.
Now, when "Submit" is selected the data is input into the table but the page does not close. Regardless of what close page technique is used.
I am using APEX 20.1 & the page is a form in normal mode.

Thank you,
Derek

Comments

InoL

the page is a form in normal mode.
There is nothing to close in a normal page. Close dialog, as the name suggets, applies to modal dialog pages.
What you are probably looking for is a branch to some other page after processing:
image.png

APEX_DOUCE

No luck. I will just have to redirect to a thank you page of some sort. Surprising there is no way to close a window after button select if the page isn't modal...

Thank you for your help.

InoL

What do you mean by "close a window" if your page is not a modal page? You can redirect to another page (= branch after processing), but there is nothing to close.
On a normal page, window.close() will close the browser tab, which is probably not what you want. That will completely kick you out of your application.

1 - 3

Post Details

Added on Sep 22 2021
3 comments
1,068 views