-
Notifications
You must be signed in to change notification settings - Fork 808
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
Form block inside FSE "On Submission" actions not working #22696
Comments
Can reproduce on WordPress.com sites and self-hosted sites As this is a Jetpack block at heart, will transfer to the Jetpack repo. |
Another report here; 36093109-hc Looks like only certain templates. (I could reproduce on Single Item templates) |
cc @danielbachhuber who worked on #24727. |
@Greatdane Would you be able to provide full reproduction steps? Thanks! |
Sure @danielbachhuber
When you visit the page and submit the form, it does not redirect Here is a video of it in action; N9YBlq.mp4 |
@Greatdane Thanks! Your additional details are very helpful — I didn't even know that feature existed 😅 Interestingly, this works in my local environment with the latest version of Jetpack and Gutenberg: CleanShot.2022-07-26.at.07.19.26.mp4However, I can reproduce the bug in the Atomic environment I created for the occasion: CleanShot.2022-07-26.at.07.38.54.mp4The underlying issue is that Atomic is using a |
Awesome, thanks for the quick fix @danielbachhuber! ABSPATH strikes again. |
Quick summary
Forms have three optional actions "on submission"
None of them seem to work when adding this block inside an FSE template.
Steps to reproduce
1- Add Form block to template
2- Test live form with any selection "on submission" option
What you expected to happen
The form should display a custom message, redirect, or show submitted fields after submitting.
What actually happened
Page refreshes and email is sent, but the "on submission" action doesn't happen.
Context
Tested on my own Atomic site.
Simple, Atomic or both?
Atomic
Theme-specific issue?
No response
Browser, operating system and other notes
No response
Reproducibility
Consistent
Severity
No response
Available workarounds?
No response
Workaround details
Adding the Form block on a page.
The text was updated successfully, but these errors were encountered: