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.

Validate entries don't match "First Name", "asdf", "90210", &quot

  1. Can I validate entries such as zip code don't match "90210" and a persons name isn't "Mickey Mouse" or "My Name" and such?

    Posted 13 years ago on Tuesday November 8, 2011 | Permalink
  2. Out of the box Gravity Forms validation is specific to the type of field you are using and designed for general use. For custom use cases and custom validation you can use the gform_validation hook and do whatever you want as far as validation goes. Using custom code and the gform_validation hook you have complete control.

    There is a tutorial on how to implement custom validation here:

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

    The gform_validation hook is documented here:

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

    Any custom code you write would go either in your themes functions.php file, or in a custom plugin you create and activate.

    Posted 13 years ago on Tuesday November 8, 2011 | Permalink