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.
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
Most helpful comment
Just add
data-vv-asattribute on the input, and it would replace it with that value instead.Outputs: