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.

Simple Custom Validation

  1. Hi,

    I have been playing with the gform_validation hook for my custom validation and this is all fine and dandy. I just wanted to put in a request for simple validation for all form fields. For example if when I added the "Name" field into my form I had simple validation options like alpha, alpha-numeric, numeric, etc. I also know some fields like number have a max and min but adding a min length to all fields by default would be nice. Using the gform_validation hook isnt' all that difficult but I just think it would be way simpler (especially to the non-tech user) to have this done in the form window. Correct me if I'm wrong but I couldn't find a simple way to do this in 1.5.

    Code Igniter has a great list of the sorta validation I'm looking for. (http://codeigniter.com/user_guide/libraries/form_validation.html#rulereference ) I feel like Gravity form is half way there with "required" and "unique" This could even be done is such a way as adding options to a drop down where you could select the validation option from a dropdown then click "+" and if you wanted to remove the option click "-" I feel that validation done in a way that is simple to the everyday user would greatly improve this product.

    Posted 13 years ago on Tuesday April 5, 2011 | Permalink
  2. Simple validation is definitely something we want to add, i'm not sure if we will add it to some of the advanced fields which have their own validation associated with them now, but it's definitely something i'd like to add to the Standard fields for general use. So this is something you can expect in a future release.

    Posted 13 years ago on Tuesday April 5, 2011 | Permalink
  3. Awesome, thanks :)

    Posted 13 years ago on Tuesday April 5, 2011 | Permalink
  4. I also just wanted to encourage you to think about adding it to advanced fields. That way someone could easily add an advanced name field, make sure it's at least 4 characters long and doesn't have a number in it. I understand these fields have their own validation but it's extremely limited. (From what I can tell just required, no duplicate)

    Posted 13 years ago on Thursday April 7, 2011 | Permalink

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