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?