Drupal is a registered trademark of Dries Buytaert
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)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

field_validation

14,966 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
6 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