Module Description
This module provides a collection of configurable validation rules for your field instances.

Available validators 7.x 8.x Color (HTML5) ✓ (*) Date range ✓ ✓ Date (ISO) ✓ (*) EAN number ✓ (*) Email ✓ ✓ Equal values on multiple fields ✓ ✓ Field collection unique ✓ (*) Integer values ✓ (*) ✓ IP Address ✓ (*) ✓ Length (optionally specify min and / max length) ✓ ✓ Match against a field ✓ ✓ Match against a property ✓ Must be empty (Anti-Spam: hide with CSS) ✓ ✓ Number of words (optionally specify min / max words) ✓ ✓ Numeric values (optionally specify min / max value) ✓ ✓ Numeric (HTML5, with min / max / step options) ✓ (*) Pattern (regular expression lite) ✓ ✓ Phone ✓ (*) ✓ PHP code (powerfull but dangerous) ✓ Plain text (disallow tags) ✓ ✓ Postal code (depend on Postal Code Validation, support Address Field) ✓ (*) Regular expression ✓ ✓ Regular expression (Perl-Compatible) ✓ (*) Require at least one of several fields ✓ ✓ Require some of several fields ✓ (*) Required field ✓ (*) Specific value(s) ✓ ✓ Unique ✓ ✓ Unique values on multiple fields ✓ URL (support internal path and external URL validation) ✓ ✓ Words blacklist ✓ ✓ (*) = provided by the (included) field_validation_extras submodule in 7.x

Since 7.x-2.1, we add another sub module property validation which could solve validation issues for property(non-field), such as title, Ubercat SKU, list_price.

Drupal 8, 9, 10 You need clear the cache if it is not works correctly

The 8.x branch is still in progress. Not all validators that are available in the 7.x are ported yet and some of them won't be due to the existence of other field validation mechanism provided by core.

In Drupal 8, validators are plugins, you can program your own validator or extend some of the existing.

3.0.x version allow you add Drupal'core constraint to field by UI.

Requirements 7.x

* Ctools
* Entity API (For property validation)

8.x
Just Drupal core.

Documentation
* Lullabot write a doc for this module: Write complex validation rules for your fields (7.x), at 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
* PHP code validator document: https://www.drupal.org/node/1537028

Related modules
* clientside validation
* field validation deprecated

update from 8.x-1.0-beta3 PluginNotFoundException: The "blacklist_field_validation_rule" plugin does not exist. BlacklistFieldValidationRule is renamed to "BlocklistFieldValidationRule", you can copy the old version from beta3, it still works.

Project Usage
23225
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve validation issues for field instances by providing a collection of configurable validation rules.
Data Name
field_validation

OPENAI CHATBOT

OPENAI CHATBOT

14:26:54
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.