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.

Age verification

  1. mikes-bab
    Member

    Can I create an age verification with a date picker? If a submitter is under a certain age, I want to disallow them from submitting the form. thanks!

    Posted 14 years ago on Monday May 9, 2011 | Permalink
  2. This isn't built in functionality but you could certainly write your own custom validation to do this.

    You would write custom PHP that uses the gform_validation to validate the date entered in the date field and throw an error if they aren't old enough.

    Here is documentation on the gform_validation hook:

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

    Here is a complete tutorial example of how to write custom validation using this hook:

    http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_valiation%22_Hook

    Posted 14 years ago on Monday May 9, 2011 | Permalink