• Skip to primary navigation
  • Skip to main content

GravityWP

The best information about Gravity Forms, GravityView, Gravity Flow and other addons

  • Tutorials
  • Forms
  • Views
  • Workflow
  • PDF
  • Perks
  • Show Search
Hide Search
Jurriaan Koops

Go to the top after Next or Submit Gravity Forms

Jurriaan Koops · Mar 30, 2018 ·

When you use pages in your Gravity Forms (people click Next to go to the next page in the form) or when people submit their form, you may want to automatically have the page centred at the top of your website. This is very easy to do. It makes it much friendlier for visitors of your form, because they know that they start from the same point after clicking a button (Next or Submit).

Download Gravity Forms
  1. How to create a top anchor in a multi page Gravity Form

How to create a top anchor in a multi page Gravity Form

Add the following code to your functions.php theme file. After people click Next or Submit, the page will be automatically outlined at the top of the page.
add_filter("gform_confirmation_anchor", create_function("","return 0;"));
Download Gravity Forms

Gravity Forms

© 2021 - This website is made possible by the wonderful services of
WordPress, GravityForms, GravityView, GravityWiz, Genesis Framework & WP Engine

  • About
  • Hire GF developers
  • Charts
  • Cheat Sheet