Field Validation module

Field Validation looks like a very useful module.  It allows validation of fields (who would have thought!), and includes:

•Regular expression
•Numeric values (optionally specify min and / or max value)
•length (optionally specify min and / or max length)
•number of words (optionally specify min and / or max words )
•Plain text (disallow tags)
•Must be empty (Anti-Spam: Hide with CSS)
•Words blacklist
•number of selections (optionally specify min and / or max selections )
•Unique
•Match against a field
•Match against a property
•Specific value(s)
•Require at least one of several fields
•Equal values on multiple fields
•Unique values on multiple fields
•PHP Code (powerfull but dangerous)
•Date range

It works with the field that you create yourself through 'Manage fields'

Tags: 

2 Comments

Nice!

Definitely useful!  There's no secret in writing a form_alter() to manually validate a certain field but the beauty of this is that it does all the heavy-lifting for you.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.