alechill / livevalidation

Open source javascript library for slick, powerful, and easy client-side validation.
http://livevalidation.com
Other
151 stars 57 forks source link

Message for length #23

Closed cortopy closed 9 years ago

cortopy commented 9 years ago

Custom failureMessage for length is not showing. Instead I get the default message. Is there anything wrong with my code?

Surname.add( Validate.Length, { 
minimum: 2, 
failureMessage: "Please write your full surname" } ); 
cortopy commented 9 years ago

Found the answer in the documentation http://livevalidation.com/documentation#LiveValidation

I was using the examples instead, but documentation is very thorough. Thank you!