Yav is a SIMPLE, POWERFUL and CUSTOMIZABLE javascript-based form validation tool.
Below is a list of most important features:
- Many different validation rules
- More validation rules for each input field
- Advanced pre-condition and post-condition rules
- Extendible and flexible: user can create his own validation rules
- Customizable error messages
- Notification of errors classic and advanced, yet customizable
- Multi-language support
- Cross-browser compatibility
Yav is licensed under the LGPL license,
therefore you can use it in both commercial and open-source projects.
Yav is hosted on SourceForge where you may submit feature requests, bug reports, etc...
Your feedback is important to improve this tool.
Yav is a free license software, but any free donations are welcome!
Yav 1.4.1 available (31 January 2008)
We think this is the last 1.x release; we are working hard on getting Yav 2.0 on the road in a few weeks. Stay tuned!
new: some rules are configurable with a regular expression in your yav-config.js file
new: error messages are displayed in span tags, so you could have the messages appear at the side of the field (thank's to Peter)
bug fix: some rules don't work with radio button (big thank's to Ritesh Trivedi, and Derek Lin too)
bug fix: 'notequal' doesn't work with checkbox (thank's to Davide Fedrigo)
bug fix: 'highlight' doesn't work with multiple class names (thank's to José Francisco Rives Lirola)
Yav 1.4.0 available (21 October 2007)
In this release we have enhanced some stuff!
new: Inline notification of errors
new: chinese translation, traditional and simplified (thank's to Cloudream and Chen Ming)
new: swedish translation (thank's to Lars)
new: multiples values of 'class', setting 'multipleclassname' in your yav-config.js file (thank's to José Francisco Rives Lirola)
new: the rule separator '|' is customizable, setting 'RULE_SEP' in your yav-config.js file (thank's to Pascal)
new: More examples available (thank's to Lars)
new: an enhanced syntax for and/or operators (thank's to Lars)
new: focus on the first field that doesn't validate (thank's to Chris Riley)
bug fix: 'date' accepts values like 00-00-0000 (thank's to Thiago dos Santos Prado)
bug fix: 'highlight' sometimes doesn't work with 'and/or' (thank's to Lars)
A low traffic mailing list is now available, it notifies of Yav releases and updates. You can expect a few e-mails per year.
If you'd like you can subscribe.
Multi-language support
Available languages:
If you'd like you can translate yav-config.js file into another language (or improve existing files) and share it with yav community! Please
contact us.
jQuery.YAV plugin
José Francisco Rives Lirola has developed a plugin for integrating Yav with jQuery.
You can find jQuery.YAV in the jQuery plugins repository.
Read documentation here.
Release 1.3.7 available (18 July 2007)
Czech translation is available
(thank's to Michal Jursa).
Release 1.3.6 available (26 June 2007)
Fixed a bug with recursive calls of 'checkRule' in 'and|or' rules with more of two elements
(big thank's to José Francisco Rives Lirola).
Release 1.3.5 available (22 June 2007)
Bug fix: 'keypress' doesn't work in Firefox (thank's to Bill Alexy and Vincenzo Morgante).
Release 1.3.4 available (23 February 2007)
Danish translation is available (thank's to Hans Staugaard).
Release 1.3.3 available (24 November 2006)
Dutch translation is available (thank's to B. ter Vrugt).
Release 1.3.2 available (7 November 2006)
Slovak translation is available (big thank's to Ján Hovancík).
Release 1.3.1 available (29 September 2006)
German translation is available.
Release 1.3.0 available (21 September 2006)
Added these useful rules: and, or and empty. You can use the and/or rules as a pre-condition combining them in complex expressions! See validation rules for details.
Upgrades: The id attribute is now recognized (you can use it instead of name attribute); numrange now accepts decimal values (thank's to Massimiliano Consigli).
Fixed dirty (and possibly buggy) code (thank's to David Contini).
Release 1.2.3 available (28 May 2006)
Portuguese-Brazilian translation is available. (thank's to Esdras Beleza).
Release 1.2.2 available (25 April 2006)
French translation is available. (thank's to François).
Release 1.2.1 available (26 February 2006)
A new rule added: notequal. Now equal accepts meta-values (thank's to Christopher Vrooman).
See validation rules for details.
Release 1.2 available (20 January 2006)
We have enhanced the syntax so you can customize the field name in the error messages. In any case you can continue to use the old syntax. (thank's to Wolfgang Klinger)
Old syntax: fieldName|rule|msg
New syntax: fieldName:nameDisplayed|rule|msg
Release 1.1.4 available (11 January 2006)
Bug fix: 'numrange' doesn't work. (thank's to Matteo Minnozzi)
Release 1.1.3 available (21 October 2005)
A new rule added: email, See validation rules for details.
Spanish translation is available.
Release 1.1.2 available (11 October 2005)
Bug fix: 'Undefined is Undefined' in IE 5.0. (thank's to Alexis Fillonneau)
A new rule added: date_le, See validation rules for details.
Italian localization is available.
Fix Release 1.1.1 available (27 September 2005)
Bug fix: 'check date' doesn't work in some particular cases, download here the fixed release. (thank's to Dante Di Domenico)
Release 1.1 available (19 July 2005)
Added these useful rules: numrange and keypress, See validation rules for details.
Release 1.0b available (12 April 2005)
The first stable release is available. We have updated all the documentation so yav is (hopefully) even more simple to use.
yav 1.0b nearly ready (25 March 2005)
We are working hard on getting yav 1.0b on the road, the first stable release of yav is nearly ready. Stay tuned!