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 Field Input Unless Text = "Required"

  1. Hey Guys,

    The following post was helpful in allowing me to insert the word "Required" in to the input boxes. http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/

    I'm curious if there is a way I can add a bit of code to the validation so that it doesn't allow the word "Required" to validate.

    I know it'll probably be editing the core and I'll need to revise when the plugin updates, but I can manage that. I'd rather have the functionality.

    Posted 13 years ago on Tuesday April 5, 2011 | Permalink
  2. We never advocate editing the core plugin as that makes updates problematic for you and we always recommend users run the latest version of the plugin.

    What you can do is use the gform_validation hook to write your own custom validation. You'd have to know PHP to do this, and understand WordPress hooks but you can write any custom validation you want.

    Here is the documentation for the gform_validation hook:

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

    Posted 13 years ago on Tuesday April 5, 2011 | Permalink