-
Notifications
You must be signed in to change notification settings - Fork 805
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
Contact Form: Add post-submission options. #13745
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
This is an automated check which relies on |
extensions/blocks/contact-form/components/jetpack-contact-form.js
Outdated
Show resolved
Hide resolved
extensions/blocks/contact-form/components/jetpack-contact-form.js
Outdated
Show resolved
Hide resolved
pento, Your synced wpcom patch D33974-code has been updated. |
I'm not sure a custom URL is the best UX here. I expect most users won't have a place for their users to go to when they find these settings, so they'll need to create one. For this reasons I would prefer we had a button to create a new page and a dropdown list of all their pages. I think users are more likely to want to redirect to their own site than an external URL and if they change the slug of their page, we can make sure the redirect doesn't break. |
I'm not against this. I think you're probably right. Some thoughts/questions that come to mind: A) How much scope do we think this would add? I'm going to cc @davipontesblog to see if he has any feedback on this. |
I was assuming this would happen in within Gutenberg in the same page... |
The same kind of issues will come up in the Navigation block, so if it's a problem we can look at how they solve it; and if they haven't then we can invest the effort to solve it for them! |
@pento, I pinged @scruffian on Slack and spoke with him about this just now. His proposal is that once a user clicks the "Make a thank you page for me" option that we would create the page behind the scenes and add some default thank you page content automatically (that they can modify later). Here's a user flow for Ben's proposal: Also, here's a quick video walkthrough of a rough mockup: https://cl.ly/01615a7c53e6 Thoughts on how much additional scope this will add in number of days? If we feel good about this and the scope isn't too crazy, I'll flesh this out more and update the brief. |
pento, Your synced wpcom patch D33974-code has been updated. |
Thanks for the feedback, @davemart-in and @scruffian! For the page redirect, I swapped the I don't believe it's a viable option to use a dropdown. There have been substantial efforts towards doing a scalable dropdown in the block editor (for example, WordPress/gutenberg#16666), but there are significant hurdles to overcome. I've had a look around, and I can't find any examples in the editor of a user flow that includes adding a new page, so it's a bit tricky to say how long it would take to build. From a basic implementation perspective, I don't think there would be any major hurdles. It should (assuming no weird complications in this step) be just a REST API call to create the page. From a UX perspective, I strongly suspect this will manifest as a ball of edge cases to deal with, though. Off the top of my head:
There are almost certainly more exciting cases that we'd encounter along the way. Side note: Given the existence of #13468, do I need to worry about the codeclimate check failing? @kraftbj, are the codeclimate config changes likely to merge at some point? |
pento, Your synced wpcom patch D33974-code has been updated. |
Very cool!
Thanks. You've highlighted a number of interesting edge cases. Don't get me wrong, I think this would be an interesting problem to solve, but I think at this point, based on what we know, my preference would be:
|
pento, Your synced wpcom patch D33974-code has been updated. |
pento, Your synced wpcom patch D33974-code has been updated. |
pento, Your synced wpcom patch D33974-code has been updated. |
All of the feedback to date has been addressed. The codeclimate check is still failing, but looking at recent PR merges, it seems like that isn't a blocker? @jeherve, could you give it another once over? |
I defer to @jeherve on the actual review since there's history, but correct, we're working on making codeclimate checks actionable... The LOC checks won't be kept, so removing the codeclimate blocker. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me now. It should be good to merge!
* 7.9: Changelog * Update version number * Update stable tag and tested up to * Changelog: add #13530 * changelog: add #13578 * Changelog: add #13598 * Changelog: add entry for numerous block preview changes * Changelog: add #13599 * changelog: add #13541 * Changelog: add #13542 * Changelog: add #13331 * Changelog: add #13558 * Changelog: add #13409 * Changelog: add #13582 * Changelog: add #13600 * Changelog: add #13601 * Changelog: add #13595 * Changelog: add #12695 * Changelog: add #13009 * Changelog: add #13649 * Changelog: add #13450 * Changelog: add #13507 * Changelog: add #13658 * Changelog: add #13687 * changelog: add #13683 * Changelog: add #9323 * Changelog: add #13681 * Fix typos in readme * Add link to WordPress Beta Tester plugin * Changelog: add #13630 * Changelog: add #13695 * Changelog: add #13659 * Changelog: add #13716 * Changelog: add #13664 * Changelog: add #13682 * Changelog: add #13362 * Changelog: add #13563 * Add testing list for #13563 * Changelog: add #13735 * Changelog: add #13752 * Changelog: add #13624 * Changelog: add #13756 * Changelog: add #13745 * Changelog: add #13728 * Changelog: add #13779 * Changelog: add #13699 * Changelog: add #13804 * Changelog: add #13761 * Changelog: add #13637 * Changelog: add #13517 * Changelog: add #13521 * Changelog: add #13729 * Testing list: add testing instructions for #13729 * Changelog: add sync changes * Changelog: add #13807 * Changelog: add #13654 * Changelog: add #13795 * Changelog: add #13801 * Changelog: add #13818 * Changelog: add #13725 * Changelog: add #13831 * Changelog: add #13516 * Testing list: add Twenty Twenty instructions * Changelog: add #13799 * Changelog: add #13805 * Changelog: add #13688 * Changelog: add #13830
This PR adds post-submission options to the contact-form block.
Fixes #708, #12286.
Changes proposed in this Pull Request:
InspectorControl
panel to to the contact form block, which allows setting an optional message or custom redirect URL to be used after the contact form is submitted.NOTE: While this PR technically adds support for these options to the shortcode, this is just a side-effect of how the contact form works, rather than a deliberate decision, and should be considered unsupported. Support has not been added to the TinyMCE plugin.
Is this a new feature or does it add/remove features to an existing part of Jetpack?
Adds features to the Contact Form module. pb5gDS-7W-p2
Testing instructions:
Screenshots
Proposed changelog entry for your changes: