Click here to Skip to main content
14,486,704 members
Rate this:
Please Sign up or sign in to vote.
I've got a problem. I'm currently working for a client in an Wordpress buildup with Elementor. They have a form made with GravityForms.

When I select the answer to the first question in the form it automatically scrolls up to the top on MOBILE. The form is a conditional form, when answering a certain answer it opens new relevant fields.

I found out a similar issue with sending the form where I can 'easy' set it off when submitting it. But it won't work over here because the issue is related to answering the first question on the form and not to submitting it.

Can somebody please help me out to adjust this php code to the first answer in the form instead of the submit button, or find any other solution since I am already desperate? :(

add_filter( 'gform_confirmation_anchor', '__return_false' );
Thanks in advance!

By the way, here's a link where you can view the form aswell:
<a href=""></a>

Here's a demonstration of the problem:[^][^][^][^]

What I have tried:

Tried to add the following code:
add_filter( 'gform_confirmation_anchor', '__return_false' );

In the function.php file.

In addition, I tried to change the type of the first field to a dropdown menu, however it still happens when the second field that matches the relevant condition pops up.

And of course I tried to google it to see if other have experienced the same thing using this wordpress plugin.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100