I'm using apex 5.0.3, universal theme and 11g DB.
I have an item p1_show_alert, and p1_text.
I created a DA on p1_text.
Event ->Change
Item -> P1_TEXT
Action
1. Execute JavaScript Code
var r = confirm('Do you want to display alert');
if (r == true) {
$x('P1_SHOW_ALERT).value = '1';;
}
2. Execute PL/SQL,
pl/sql code -> null;
Page Items to Submit -> P1_SHOW_ALERT
I created a DA on p1_show_alert
Event ->Change
Item -> P1_SHOW_ALERT
Condition -> equal to
Value -> 1
Action
1. alert -> text -> Yes
I can see the confirm window but the 2nd DA is not being executed and also I can see the value of P1_SHOW_ALERT displaying correctly.