Community Documentation

Field validation

Last updated October 28, 2011. Created by g089h515r806 on October 4, 2011.
Log in to edit this page.

Field validation adds an extra tab to each field instance, allowing you to specify validation rules for your field instances.
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

Documentation for Regular expression

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

Page status

About this page

Drupal version
Drupal 7.x
Audience
Contributors, Programmers, Site administrators, Site users
Keywords
field, php, Regular expression, Unique, validation

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.