Disable auto scrolling to anchor after form submission
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
// Disable auto scrolling to anchor after form submission
add_filter( 'gform_confirmation_anchor_1', '__return_false' );
<!-- where 1 is the ID of form. -->