Parsley custom error message doesn't work

Marc Rasmussen picture Marc Rasmussen · Jan 27, 2014 · Viewed 31.7k times · Source

I have the following input field:

<input id="name" name="real_name" type="text" placeholder="ie. Your full name or company name" class="form-control input-lg parsley-validated"
   data-required="true" parsley-error-message="Please insert your name" >

However, when I press my submit button, I only get the standard This value is required. message.

Can anyone tell me why?

Answer

Ankit Sharma picture Ankit Sharma · Jun 19, 2014

Try

data-parsley-required-message="Please insert your name"