-
Notifications
You must be signed in to change notification settings - Fork 18
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
Scroll to success message after successful submission (multistep) #90
Comments
Hi @pwkip, WPCF7 calls Conditional fields plugin listens for that event and triggers the scroll to the output area: https://github.com/pwkip/contact-form-7-conditional-fields/blob/master/js/scripts.js#L370 |
I'm having trouble reproducing this. Not sure what |
Seems to be related to the presence of |
Hi, Maybe adjusting the selector in conditional-fields plugin is an idea? It could only trigger |
Right, I'll add an extra check in the next update. Thanks again for pointing out the issue. |
Please make this behaviour optional - as it currently modifies the behavior of all cf7 forms even when conditional forms are not being used. Also, I don't like that, as it scrolls the message to the top of the viewport, the form itself is not on screen anymore. Or, maybe I was surprised / annoyed by this behaviour because it scrolls down even when the messange would have been visible (in the viewport) anyway. So this might be a more sane behavior: if (not in viewport) { |
@benjaminpick noted. I like you final solution. reopening this issue. |
@benjaminpick In version 2.1.1 of the plugin the page will scroll until the success message is into view, but no further. Please update and let me know what you think. |
Works well for me. @Nolanus can you verify as well please? |
It would be nice if the success message is always scrolled into view automatically after a successful form submission. This is feature that CF7 seems to lack, and it's not super annoying. But, with multistep it can become truly irritating. If for example the first step of you form has a lot of fields, and you submit the form, the form will move back to the first step and scroll back to the top of the form, thus hiding the success message completely.
I will address this issue by always scrolling the success message into view. This will also affect forms that do not contain steps or conditional logic, but I don't see a problem with that.
The text was updated successfully, but these errors were encountered: