Open rajat-arora084 opened 1 year ago
class NewSimpleReactValidator extends SimpleReactValidator {
constructor(options = {}) {
super(options);
this.helpers.humanizeFieldName = (field) => {
// startCase is a Lodash method
return _.startCase(field.replace(/([a-z0-9])([A-Z])/g, '$1 $2').replace(/_/g, ' '));
}
}
}
When I try to show validation messages on a field. It shows the field name in lowercase. Can it be shown as per the field name?
Example: My field name is: Mobile Number