Vee-validate: Rename error output

Created on 14 Oct 2017  ยท  1Comment  ยท  Source: logaretm/vee-validate

It's just a quick question how I can transform the error message.

~~
Firstname:


~
~

Default would be:

~~
field first_name is required
~
~

Where I would like to transform it to the label, instead of name:

~~
field firstname is required
~
~

Hope it makes sense.

โ” question

Most helpful comment

Just add data-vv-as attribute on the input, and it would replace it with that value instead.

<input type="text" name="first_name" data-vv-as="First Name">

Outputs:

field First Name is required

>All comments

Just add data-vv-as attribute on the input, and it would replace it with that value instead.

<input type="text" name="first_name" data-vv-as="First Name">

Outputs:

field First Name is required
Was this page helpful?
0 / 5 - 0 ratings

Related issues

7immer picture 7immer  ยท  3Comments

saintplay picture saintplay  ยท  3Comments

jagasan picture jagasan  ยท  3Comments

triffer picture triffer  ยท  3Comments

Etheryte picture Etheryte  ยท  3Comments