ZF-6354: Doubt about addError - Zend_Form
Description
Hello, I tried to find something about custom errors depending the value and validator of the form.... Can I set my own messages errors depending the validation of the form? for example: If I set a StringLength validator, I show the message: "You wrote less than 6 chars." On the same textfield, if the user write any number, show another message like "stupid! only chars!".
Comments
Posted by Frank Brückner (frosch) on 2012-07-30T15:06:17.000+0000
You don't need custom error messages!
Use another validator:
Or use regex: