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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

"On change" dynamic action not firing at "Enter" on page item with "Submit when Enter pressed"

Kim Berg HansenJan 8 2025

Environment: APEX 24.1.4 on an Always Free ATP database version 23ai.

I have a page with a couple page items. There's a dynamic action on “Change” for both page items that sets a value for a third (hidden) page item.

I have validations that depend on the value of that third page item. The validations are set to execute always.

I have a submit button. When I press the submit button, the “Change” dynamic action fires, the hidden page item is set, the validations use this value, and all is good.

The second page item is set to “Submit when Enter pressed”. If the submission is done by pressing Enter on this field (instead of pressing the submit button), the “Change” dynamic action does not fire :-(

Validations and processing run the same way no matter if submission happens via button or Enter - it's just that “Change” dynamic action is skipped in the case of Enter submission (which then causes my validations to not work.)

What's the difference between a button submit and an Enter submit? Why do they not both trigger the “Change” dynamic action?

As a possible workaround I've attempted to make a “Before page submit” dynamic action as an alternative to the “Change” dynamic action on the page items, but apparently the “Before page submit” is executed after the validations, not before. So that does not help me for this case.

This post has been answered by jariola on Jan 8 2025
Jump to Answer
Comments
Post Details
Added on Jan 8 2025
7 comments
93 views