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).
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;"));