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.

Auto Clear of Default Values WITH Error Trapping

  1. Carl's recent blogpost "Clearing Default Field Values with jQuery" http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/ gave us a pretty quick and easy way to enable Gravity Forms to flush pre-populated default field entries.

    BUT, as is pointed out:

    "Something to Consider: Please be aware that if you're using default values on fields you've defined as required, they will validate even if the user doesn't not populate them or change their value. This is due to the fact that the default value will be submitted as the form field value if they are not changed by the user."

    Obviously, when checking for user entry error Gravity Forms is just checking whether there is any "data" in the field blank. Couldn't it be that a slightly more complex check could be made -- whereby Gravity Forms would compare the submitted field contents to the default -- if what was being submitted was the same as the pre-populated default (ie. the user had not entered anything in that field) Gravity Forms would respond the same as if the field were blank -- generating an error message, etc. ??

    Posted 15 years ago on Monday November 16, 2009 | Permalink
  2. Hey Jim, that's basically how it will work when do add that functionality to a later release of GF. It's on the to-do list, just not sure what release that will end up on.

    Posted 15 years ago on Monday November 16, 2009 | Permalink
  3. droidus
    Member

    I'd love to see this feature implemented too!

    Posted 13 years ago on Wednesday September 28, 2011 | Permalink

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