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.

Field values will not clear when form has validation errors?

  1. I'm using the script found here:

    http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/

    Works great, but if the user submits the form and there are validation errors (like email), it no longer clears the values. Is there a fix for this?

    Posted 11 years ago on Wednesday August 22, 2012 | Permalink
  2. Bump?

    Posted 11 years ago on Thursday August 23, 2012 | Permalink
  3. Do you have a link to your form?

    Posted 11 years ago on Thursday August 23, 2012 | Permalink
  4. Sure...click "Request Invite" and the form fields stop clearing:

    http://emyth.staging.wpengine.com/#invite

    Posted 11 years ago on Thursday August 23, 2012 | Permalink
  5. Ok I believe what you need to do here is reinitialize the JavaScript you are using to clear the values. Take a look at this hook here:

    http://www.gravityhelp.com/documentation/page/Gform_post_render

    Posted 11 years ago on Thursday August 23, 2012 | Permalink