For example, I have a datasource hooked up to a Grid and certain fields are required, but the internal field names are not exactly fit for display. So, if I have a field named 'user_first_name': rather than a message like: 'user_first_name is required' I'd like an easy way to specify an alias for the field name to produce 'First name is required'
I know it's possible to define custom validation messages, but the standard messages are generally fine, except for the field names. It seems like a lot of work to define loads of custom messages, when all I need is to replace the field name.
6 Answers, 1 is accepted
I just want to ask: Is this still the current state of developement? Or is it now possible to use the standard-messages in combination with the labels of the grid-columns...? Defining custom-messages for all columns is time-consuming.
There are no changes in that regard, as the Validator is not tightly coupled with the Grid and there is no built-in mechanism of using the column's title instead of the field's name.