[FLOW3-general] Custom form errors

Michael Feher michael at feher.at
Wed Dec 1 09:45:11 CET 2010


> One thing I didn't found out right now is how to edit the error message for
> each individual form element. Any hint would be helpful. Currently there is
> the default text based
> on my selected validator.

As far as I remember are the error messages hardcoded in the validator 
class. I wanted to add a feature request about this, but never did it.

It would be great to customize the error message by adding an annotation 
to the element definition. The syntax should support 
internationalization and variable substitution to include the actual 
(false) value in the message. And the syntax should be equal for all 
validators which means it should be implemented in a separate class used 
by all validators.

Michael


More information about the FLOW3-general mailing list