Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

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

form

Started by Mattism 3 years ago · 0 replies · 336 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 Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 54 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1181 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 73 2 months ago