Created
October 7, 2015 18:21
-
-
Save anneallen/4a3c90b48c0c40b39349 to your computer and use it in GitHub Desktop.
Add filter to Gravity forms to return to form top (not page top) when validation errors are present
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Gravity forms - keep form visible if validation problems | |
add_filter("gform_confirmation_anchor", create_function("","return true;")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful when the form is long and/or the page is long - validation error returns to top of the page, leaving the form validation error message out of site - users get confused and think a form has been submitted