Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

field_validation

14,474 sites Security covered
View on drupal.org

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

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. it support 40+ symfony constraints. Callback allow you write custom code, Expression allow you use twig-like expression...

Update from 8.x-1.x to 3.0.0

Requirements

7.x

8.x

Just Drupal core.

Documentation

Related modules

Activity

Total releases
2
First release
Sep 2025
Latest release
7 months ago
Release cadence
20 days
Stability
0% stable

Releases

Version Type Release date
3.0.0-beta6 Pre-release Oct 7, 2025
3.0.0-beta5 Pre-release Sep 17, 2025