Vee validate - Custom error message?

When vee validate selects an invalid field, it throws an error using the field name, for example.

The address_line_1 field is required.

Is it possible to use a field label or some other attribute in the error message, since the field names are not always user-friendly.

+4
source share
1 answer

You can use data-vv-aswhich will be displayed in the error message. More details here .

<input type="text" name="address_line_1" data-vv-as="Address Line 1" />
+8
source

Source: https://habr.com/ru/post/1673408/


All Articles