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.

How to relocate "There was a problem with your submission." error text?

  1. luxerman
    Member

    I have a long lead page, so the final contact form is on the very bottom. I would like to move the "There was a problem with your submission." text higher up on the page so a user knows there was an issue, without having to scroll all the way down.

    Is there a code that I can past via php/html that will display it at the very top?

    thank you

    Posted 11 years ago on Saturday February 2, 2013 | Permalink
  2. luxerman
    Member

    anyone?

    Posted 11 years ago on Sunday February 3, 2013 | Permalink
  3. @luxerman, there is no support on the weekends as detailed here: http://www.gravityhelp.com/support-times/ Thank you for your patience.

    Posted 11 years ago on Monday February 4, 2013 | Permalink
  4. If you use AJAX when embedding the form, the page will scroll automatically to the validation error when it fails validation. Can you use AJAX when you embed this form in the page?

    If not, you can use some additional JavaScript to scroll the page to the div.validation_error after the form is submitted, when there is an error. This user explains how to do that: http://jeffsebring.com/2012/validation-confirmation-hidden-gravity-forms-wordpress/

    His reasons were different but the approach is the same: check to see if the form was submitted and if so, check for a validation error, then scroll the page to that div.

    This post may be helpful as well (checking for the existence of the validation_error div): http://www.gravityhelp.com/forums/topic/call-javascript-function-upon-validation-error#post-16766

    Posted 11 years ago on Monday February 4, 2013 | Permalink