This module adds an extra tab to each field instance, allowing you to specify validation rules for your field instances.

By using the hooks provided by this module, you can also define your own validation rules in your own modules.

The following validation rules are currently included:

•Regular expression
•Numeric values (optionally specify min and / or max value)
•Minimum length
•Maximum length
•Minimum number of words
•Maximum number of words
•Plain text (disallow tags)
•Must be empty (Anti-Spam: Hide with CSS)
•Words blacklist
•Minimum number of selections required
•Maximum number of selections allowed
•Exact number of selections required
•Unique
•Match another field(or entity property)
•Specific value(s)
•Require at least one of several fields
•Equal values on multiple fields
•Unique values on multiple fields
•Custom PHP function
•Date range

Documentation

Lullabot write a doc for this module:Write complex validation rules for your fields, http://www.lullabot.com/articles/module-monday-field-validation

Docs on drupal.org: http://drupal.org/node/1299698
Date range document: http://drupal.org/node/1438436

related modules

clientside_validation module , http://drupal.org/project/clientside_validation
This module adds clientside validation for all forms using jquery.validate.It support some client side field validation.

Validation functions, http://drupal.org/project/1351446,
It's helper module for module field validation. The module collects PHP function for validation.

Acknowledgements

Mr Zhang need a validation module which could add regular expression validation rules for Field , and he think Webform Validation is simple and powerfull.But we can not find any module exist for field validation like Webform Validation.
That is why much code of the Field validation module was copy from Webform Validation module http://drupal.org/project/webform_validation. Thanks to svendecabooter.

Sponsors:

This module was sponsored by 2u4u
Date validation module was sponsored by cgdrupalkwk

Authour:

Howard Ge

The author can be contacted for paid customizations of this module as well as Drupal consulting and development.

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0-beta5 tar.gz (18.27 KB) | zip (22.13 KB) 2012-Feb-13 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (18.28 KB) | zip (22.14 KB) 2012-Feb-13 Notes

Project Information


Maintainers for Field validation

  • g089h515r806 - 66 commits
    last: 1 week ago, first: 41 weeks ago
  • B-Prod - 1 commit
    last: 1 week ago, first: 1 week ago

Issues for Field validation

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 23 Apr 11
nobody click here