Scroll to the Gravity Forms Confirmation Message
Makes every Gravity Forms form jump to its confirmation or error message after submitting, so visitors on long pages and phones see the result.
Opens WPIDE on
Code
add_filter( 'gform_confirmation_anchor', '__return_true' );
Notes
Applies to all forms; return false in the filter for a form where you want to stay at the top.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.