This page may contain affiliate links. Please read my disclaimer for more information.

Page scrolls to the top when form is submitted

  |  by Chris Eggleston


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, feel free to use the comments or chat options below.

If you have an active Gravity Forms license, you can also open a support ticket here.

Photo of author
About the Author
Chris Eggleston
Chris is not just a Gravity Forms enthusiast; he's a dedicated father and loving husband. As the proud owner of WP Mantis, he's on a mission to simplify the WordPress experience for site owners. He brings a unique perspective to the Gravity Forms community.


0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments