Sometimes your Gravity Form is in the middle or at the bottom of a page. So after the person fills out the form, they are redirected back to the top of the page. This is annoying because they aren't sure if their submission went through. This code will automatically scroll the page back down to where the form was after confirmation.
Add this code to your functions.php file:
add_filter( 'gform_confirmation_anchor', '__return_true' );
Alternatively you can also create a separate confirmation page all together and not have that problem at all, but I don't like doing that for every form. Not every form needs a separate confirmation page as often times a simple confirmation message will suffice.
More info here: https://www.gravityhelp.com/documentation/article/gform_confirmation_anchor/
Thanks for this peace of code!