english italiano   Home Download | Contact

Documentation


Getting started

Validation rules

Learn by example




Paj_s Home

What is Yav?

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!

Support This Project

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:

- chinese (traditional and simplified) - german
- czech- italian
- danish- portuguese-brazilian
- dutch- slovak
- english- spanish
- french- swedish

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.