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.

Error/Confirmation messages on form that's not at top of page

  1. I'm wondering if there's a way to use anchors or a pop-up message for the confirmation message with the user submits a form, or when they submit it when there is an error.

    I'm using a form in a sidebar that's a ways down the page (see here: Submit A Deal in the right sidebar http://denverbargains.com )

    The problem is, when they submit the form, unless they scroll all the way back down to where the form is, they don't see the confirmation message or any errors. I know I can redirect the confirmation message to a new page, and that would work, but that doesn't help when someone tries submitting the form and there's an error. In most cases, I'm guessing they would never realize there's an error unless they scroll back down the page.

    Is there a way to get the page that's loaded after submission to hop back down to the form area, using anchors or something?

    Posted 14 years ago on Saturday March 19, 2011 | Permalink
  2. Adding this to your functions.php will add an anchor tag above the confirmation message and submit to that anchor tag so the confirmation will be visible when the form is submitted:

    add_filter("gform_confirmation_anchor", create_function("","return true;"));

    Posted 14 years ago on Sunday March 20, 2011 | Permalink
  3. PERFECT. Thank you!

    Posted 14 years ago on Sunday March 20, 2011 | Permalink

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