Skip to content

Page scrolls to the top when form is submitted

Chris Eggleston 1 min read

Symptoms

The page scrolls to the top when your form is submitted and users have to scroll back down to the form to see the error or confirmation messages.

How To Fix It

Enabling AJAX on your form will ensure that only the form area changes and the confirmation message or error messages are displayed when the form is submitted, preventing the page from reloading.

Enabling AJAX is handled different depending on how you’re embedding the form in your page. Click the appropriate article below for your embed method to learn how to enable AJAX on your forms.

For a slightly more advanced option, you may also want to take a look at the gform_comfirmation_anchor documentation.

Need More Help?

If you still need help, use the chat or leave a comment below and we’ll get back to you.

Comments

Ask a question or leave a comment

Your email is never shown. For help with a specific form, share what you expected and what happened instead.