Page scrolls to the top when form is submitted

Apr 15, 2021

1 Min. Read

Share URL

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

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, 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
Husband. Father of 4. Grandpa of 2. Chief Problem Solver exploring business systems, technology, AI & faith — helping people solve real problems. @mantiswp @chrisegg

Support Chris - Donate $5

Gravity Wiz Add-Ons

Advertisement

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Related Post

Automatically Switch from a Registration Form to a Waitlist in Gravity Forms

This tutorial shows you how to automatically switch from a registration form to a waitlist form in Gravity Forms using entry limits or attendee tracking with a custom shortcode.

Sep 29, 2025

4 min. read

Using AI + Gravity Forms to Streamline Job Applications

Hiring is tough. Sorting through dozens, or even hundreds, of job applications is time-consuming, repetitive, and prone to human bias. That’s where combining Gravity Forms, Gravity Flow, and AI automation comes in.

Sep 26, 2025

2 min. read

Turn Gravity Forms Image Choice Field into carousel

Problem Recently, I saw a Gravity Forms user looking for a way to style the new Image Choice field. Specifically,...

Jul 14, 2025

3 min. read

Offer Subscription With One-Off Add-On Product Options with Gravity Forms

Want to offer a subscription + one-time add-ons in Gravity Forms? Here’s how to do it using Stripe’s setup fee feature in a single payment feed.

Mar 24, 2025

2 min. read

Gravity Forms A/B Split Testing

Problem We recently received an interesting request from a Gravity Forms user who wanted to know how to do A/B...

Mar 21, 2025

5 min. read

Gravity Forms Field Validation Based on Form Entries

Problem Recently a client reached out with a very specific request for a project she was working on. Simply put,...

Mar 20, 2025

3 min. read