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!

Submit Page ignoring javascript confirm in Apex 20.1

BobRDec 10 2021

I have a page used to delete locations. I select the location and use javascript to update a page item. Then I have a javascript script to use a confirm dialog:
apex.message.confirm( "Delete this Location?", function( okPressed ) {
if( okPressed ) {
apex.item("P123_YN").setValue("Y");
}
});
I have the P123_YN visible and can see it is updated. I then added a page submit following the javascript. My problem is that the confirm script now does not execute when the submit is used. It does if the submit is deleted. Got to have the Confirm script fire before the page submit.
Any ideas here?

This post has been answered by fac586 on Dec 10 2021
Jump to Answer
Comments
Post Details
Added on Dec 10 2021
2 comments
622 views