Probably many of Magento developers are aware of existence so called “validation” classes like “required-entry”(which is probably the most popular among all of them) but from time to time you need to use more sophisticated validation of your custom form fields – and for some of us that might become a problem, since far not all classes are described anywhere on a single page.
What i have decided to do is just copy/paste all class names together with their messages(both are selfexplanatory as you will see further) to ease life for those of us who are too lazy or just not experienced enough in Magento’s stuff.
First of all id like to mention that all of these classes can be found in the following file: /js/prototype/validation.js
As you can see its actually prototype’s library which is included into Magento’s package by default.
Here is the list: