Webform Validation

Slug: 
webform_validation
Versions de Drupal: 
6.x
7.x
D.o - Installation Rank: 
163
D.o - Reported Installs: 
4 183
D.o - Maintenance Status: 
Actively maintained
D.o - Development Status: 
Under active development
D.o - Module Categories: 
Content
D.o - Download 6.x: 
6.x-1.3|http://ftp.drupal.org/files/projects/webform_validation-6.x-1.3.tar.gz|15.43 KB
D.o - Download 7.x: 
7.x-1.0-rc1|http://ftp.drupal.org/files/projects/webform_validation-7.x-1.0-rc1.tar.gz|15.72 KB
D.o - Original Description: 
Webform validation module

Description:

This module adds an extra tab to each webform node, allowing you to specify validation rules for your webform components.
You can create one or more of the predefined validation rules, and select which webform component(s) should be validated against those.
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:

  • Numeric values (optionally specify min and / or max value)
  • Minimum length
  • Maximum length
  • Equal values on multiple fields
  • Unique values on multiple fields
  • Specific value
  • Require at least one of two fields
  • Require at least one of several fields
  • Minimum number of selections required
  • Maximum number of selections allowed
  • Exact number of selections required
  • Plain text (disallow tags)
  • Regular expression
  • Must be empty (Anti-Spam: Hide with CSS)
  • Words blacklist

If you have written your own validation rules, please add them as a patch to the issue queue.

Features overview:

  • Validate webform form components against a set of predefined validation rules
  • Ability to implement your own validation rules in your module through hook implementations
  • Works with Webform 6.x-2.x and 6.x-3.x branches
  • Support for Node Clone module
  • Custom error messages are translatable through the i18nstrings module

Frequently asked questions:

Q: Can I validate values against my own dataset, set of codes or database table?
A: You should create your own custom module which hooks into this module. See http://drupal.org/node/822146#comment-3080360 for an example.

Author:

Sven Decabooter (Pure Sign)
The author can be contacted for paid customizations of this module as well as Drupal consulting and development.

Souscrire à DrupalFrance.com RSS