You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second parameter defines the failure which will be overridden. When you omit this parameter, then the given message will be set for all possible failures of this validator.
I have a simple field in a sign up form whose counterpart InputFilter contains this configuration:
Are you using InputFilter? Then message could be defined at the same level of the input and should works too (Except the same message its used for every validator)
Configuring a 'message' option on validators should return that single message on failure. (ref http://framework.zend.com/manual/current/en/modules/zend.validator.messages.html)
I have a simple field in a sign up form whose counterpart InputFilter contains this configuration:
In this case, unfortunately, we get a regex failure that's pretty cryptic on top of what we've set.
The message configured should preempt the regex failure.
Originally posted by @Saeven at zendframework/zend-validator#41
The text was updated successfully, but these errors were encountered: