ANNOUNCEMENT: community.oracle.com is currently Read only due to planned upgrade until 28-Sep-2020 9:30 AM Pacific Time. Any changes made during Read only mode will be lost and will need to be re-entered when the application is back read/write.
Some people use modal pages to create modal windows, but in some cases it is recommended to use the modal region for it. This solution will take advantage of some of the features found in the APEX 5 Universal theme because it is easier to Develop and debug.
1. Create a new region and than set this template to inline dialog. On my test i named it to Dialog Region.
2. On my example the modal will be open by a button click, so we need to create a button on another region.
5. Now you have to create a button to close the modal. Create it on the modal region and do the same as above but now with the following code.