Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Grav-plugin-form: Scroll to form after sending it

form

Started by Mattism 3 years ago · 0 replies · 668 views
3 years ago

I am using the grav-plugin-form. The form is at the total end of the website. The user has to scroll down to reach it. When the user has a session timeout and try to use this form, he will get an error message

Oops, your form has timed out, please reload the page and submit the form again.

which is fine. But the side will be reloaded, so the user will see the top of the website and not the form again. Which will leads to the problem, that the user won't see the error as he has to scroll down again. Is there a way, that the reloaded page leads the user automatically to the form anchor, so the user can truly see if the form was send correctly or not?

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 350 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago