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:
The author can be contacted for paid customizations of this module as well as Drupal consulting and development.
Downloads
Recommended releases
Development releases
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Content, Fields
- Reported installs: 929 sites currently report using this module. View usage statistics.
- Last modified: February 13, 2012