PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Page jumps to top after submit and user does not see errors

  1. azazure
    Member

    All of my forms are placed at the end of a page of text. When the submit button is pressed the page jumps to the top of my text not allowing the user to see any of the error messages. One of my forms is at: http://iaftp.org/membership/

    I was following thread http://www.gravityhelp.com/forums/topic/placement-error-message#post-16045 which stated that beta release v1.5 would take you to the first error message. I installed v1.5 rc4 but am getting the same results. I would like to resolve this without having to modify my code. Is there something I'm missing?

    Posted 13 years ago on Saturday February 19, 2011 | Permalink
  2. In Gravity Forms v1.5 this functionality does occur automatically with multi-page forms.

    It will also automatically occur if you enable AJAX on a single page form. AJAX is an option when embedding a form using the insert form wizard that appears in the post editor.

    I will look into why 1.5 isn't doing this by default on non-AJAX single page forms. I'm not 100% sure why. I know you can enable it using a hook by adding some code to your functions.php file, which was available in earlier releases.

    The quickest solution for you right now is to embed the form with the AJAX option turned on. To do that add ajax=true to the shortcode you are using to embed the form.

    Posted 13 years ago on Saturday February 19, 2011 | Permalink
  3. azazure
    Member

    Thank you so much, that worked. One last question: do my end users need ajax in order for this to work or will it now be included as part of the form? I'm not familiar with ajax.

    Posted 13 years ago on Saturday February 19, 2011 | Permalink
  4. Ajax is an option when you embed a form. It shouldn't impact your end users. It's just another feature.

    Posted 13 years ago on Saturday February 19, 2011 | Permalink
  5. azazure
    Member

    Perfect! Thank you for the quick resolution!

    Posted 13 years ago on Saturday February 19, 2011 | Permalink

This topic has been resolved and has been closed to new replies.