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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Evoken
Forum Members
Forum Members
Posts: 17
Joined: Thu Mar 03, 2011 6:06 pm

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

Post 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.
Last edited by Evoken on Thu Oct 10, 2013 3:33 pm, edited 1 time in total.
uniqu3

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

Post 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/
Evoken
Forum Members
Forum Members
Posts: 17
Joined: Thu Mar 03, 2011 6:06 pm

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

Post by Evoken »

Thanks uniqu3! That javascript snipped worked!
Post Reply

Return to “Modules/Add-Ons”