Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Invoke onSubmit callback on pages #149

Merged
merged 1 commit into from
Mar 29, 2022

Conversation

bwaidelich
Copy link
Member

Form Pages are an instance of AbstractSection but their onSubmit()
callback was never invoked by the Form Framework.

Resolves: #148

Form Pages are an instance of `AbstractSection` but their `onSubmit()`
callback was never invoked by the Form Framework.

Resolves: #148
@daniellienert daniellienert merged commit 800b0f5 into master Mar 29, 2022
@daniellienert daniellienert deleted the feature/148-onSubmit-for-pages branch March 29, 2022 06:16
bwaidelich added a commit that referenced this pull request Sep 13, 2022
Fixes a regression that was introduced with #149 that led to `onSubmit()`
callbacks to only get hold of the form state of previous pages.

With this fix `$formRuntime->getFormState()->getFormValues()` in a
custom element will return the previously handled form values, even of the
current form page.

Fixes: #156
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invoke onSubmit callback on pages
2 participants