Page 1 of 1

[Solved] FormBuilder: Translate "Please fill out this field"

Posted: Thu Oct 10, 2013 1:31 pm
by Evoken
Using CMSMS 1.11.7 and FormBuilder 0.7.4

When filling out a form made with FormBuilder that has a requiered field, if you leave this field blank or fill it out incorrectly and click submit, a little text appears which says "Please fill out this field". How can I translate this field to another language (spanish in my case)? I have my desired language set up for the front end in the Global Settings and have also tried putting the lang="es_ES" parameter to the FormBuilder module call to no avail.

Is this text hardcoded into some file within the module directory?

Thanks in advance.

Re: FormBuilder: Translate "Please fill out this field"?

Posted: Thu Oct 10, 2013 2:55 pm
by uniqu3
This message comes from HTML5 required attribute (http://www.html5rocks.com/en/tutorials/ ... attributes) and displayed messages depend on Browser and Browser language.
You cna override it though with some JavaScript, see this example in JSFiddle http://jsfiddle.net/zpkKv/3/

Re: FormBuilder: Translate "Please fill out this field"?

Posted: Thu Oct 10, 2013 3:32 pm
by Evoken
Thanks uniqu3! That javascript snipped worked!