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!

Dynamic Action on Radio Group

blue72TA89 minutes ago

Hello All,

Apex: 24.2.2
RDBMS: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0
Oracle Applications: 12.2.10

I have a simple Radio Group that has static values, No/Yes.

I set the default to ‘Yes’ when the page loads.

If the user changes the Radio Group to ‘No’ I have a dynamic action that fires a pop the message ‘Are you sure you want to make this change, blah, blah…'

If the users clicks ‘OK’ the value will remain as ‘No’ but if the users clicks ‘Cancel’ I need to set the value BACK to Yes (the default).

I've gotten close with the below javascript on the DA. It's changes the values as it should, but the popup window stays stuck open and will not close!

What's the best way to do this simple task, either getting the below javascript to set the value and close the pop up or via some other method. This can't be that tricky!

Thanks in advance.

apex.message.confirm(
"Are you sure you want to proceed?", // The message to display
function(okPressed) {
if (okPressed) {
$s('P4_VALIDATION_MODE', 'N',true);
} else {
$s('P4_VALIDATION_MODE', 'Y',true);
}
}
);

Comments
Post Details
Added 89 minutes ago
0 comments
10 views