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.

Submission Error Message at top of Long Form

  1. kennethfeldman
    Member

    Two Related Questions:

    I have created a lengthy form for a client.

    There are only two required fields (the first two items in the form).

    But if one or both required fields are not filled in when the user clicks SUBMIT all that way at the bottom of the form, the page does not jump back up to where the error message and indicated fields are.
    http://www.pivotal-solutions.net/Top-IT-Professionals/

    1) Any way to adjust this?

    Similar issue with a long form in the middle of a page; Upon successful submission, the Thank You message appears off the top of the screen, and one must scroll up to see it.
    http://www.aerialyoga.com/unnata-teacher-training-program/

    2) Any way to adjust this?

    Posted 14 years ago on Tuesday December 7, 2010 | Permalink
  2. There's a filter to add an anchor to the form that will solve your issue. You can get the details in this previous post.

    http://forum.gravityhelp.com/topic/redirect-after-failed-form-redirect-to-page-w-anchor#post-9592

    Posted 14 years ago on Tuesday December 7, 2010 | Permalink
  3. kennethfeldman
    Member

    Thanks, but it still does not work.

    I added the functions snippet, and I can see that it has now added the <a name='gf_1' class='gform_anchor' > anchor to the form. But on submit-error, the page does not jump up.

    Tested on Mac: Firefox 3.6.1, Safari 5.01, Chrome 8; and on PC IE7, Firefox 3.6.12

    Same for both examples:

    http://www.pivotal-solutions.net/top-IT-professionals/

    http://www.aerialyoga.com/unnata-teacher-training-program/

    Please advise.

    Posted 14 years ago on Tuesday December 7, 2010 | Permalink
  4. I checked out your form and this is the deal. You're using the Ajax submission option so the page never actually refreshes to go to the anchor. If you want to use the anchor, you'll have to go back to the standard form option (non-Ajax).

    We'll see what we can do to make something like this work with Ajax in a future version.

    Posted 14 years ago on Tuesday December 7, 2010 | Permalink
  5. kennethfeldman
    Member

    That did the trick.

    Thanks!

    Posted 14 years ago on Sunday December 12, 2010 | Permalink

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