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.

Invitation Codes, required value

  1. Hi!

    Is there a way to make a required field with a required text value, pretty much like the number field's range value? My registration form needs a required invitation/promo code.

    Posted 13 years ago on Thursday May 26, 2011 | Permalink
  2. This isn't a built in feature in any of the fields, but it's possible to create your own functionality like this.

    There is an API hook called gform_validation that you can use to write your own custom validation for a field. You can find documentation for this hook here:

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

    There is also a tutorial on how to write custom validation in a tutorial here:

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

    Posted 13 years ago on Thursday May 26, 2011 | Permalink
  3. Wow! I can't believe I haven't found that sooner. Thanks for the quick response. : )

    Posted 13 years ago on Thursday May 26, 2011 | Permalink
  4. thanks for the tip

    Posted 13 years ago on Thursday May 26, 2011 | Permalink

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