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.