Cannot disable gform_confirmation_anchor, scroll position is off also

I have followed the documentation here for disabling the autoscroll on an AJAX form. It is just not working. Nothing happens. I tried both disabling for all forms and targeting my form with the id #. I see no difference. the page still scrolls. This is for a multipage form. Here is the code I have in my functions.php file
add_filter( ‘gform_confirmation_anchor_108’, ‘__return_false’ );

The reason I was trying to disable scrolling is because the scroll position is off if I add any content below the form. If I have the form as the last element on the page the scrolling is correct. When I add any content under the form the scroll position is off. It scrolls to the first form question instead of the form header.

For comparison this is correct (see how there is no content under the form)
https://diabetesfoundationinc.org/risk-test

Now look how the scroll position is off once content is added under the form
https://diabetesfoundationinc.org/prediabetes-risk-test-redesign/

I’ve been going in circles with this for hours. Nothing seems to work. It is a seemingly simple thing but I just can’t get it to work.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.