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.

Chained Modal Dialog Region closing both regions

Richard LeggeOct 1 2024 — edited Oct 1 2024

Hi All,

Apex 5.1

SE 12.1

I have two modal regions on my page (they are regions, not modal pages) . Each has a separate static ID. I open one modal, and then have a button on that modal which opens a second modal. The problem I have, is that when I click a button to close the second modal using closeModal(), or closeModal('modal2'), it also closes the first one.

Ive tried hiding the second one, which kind of works (it leaves the title div, and I have to hide that separately), but then I cannot re-open it again. I've tried various methods to open and close the modals correctly, including the close and cancel Dialog dynamic action (which don't seem to do anything), as well as manually closing it, but without success.

If anyone can please advise, I would be grateful.

Many Thanks

Comments
Post Details
Added on Oct 1 2024
1 comment
49 views