How do I update the submit button and error message to reflect local language (i.e French) | Community
Skip to main content
June 4, 2015
Solved

How do I update the submit button and error message to reflect local language (i.e French)

  • June 4, 2015
  • 4 replies
  • 12659 views

Hi

First time form creator

I have created a form in French and I now need to update the error messages for my required fields and the submit button to be in French.  Can someone please provide me with direction on how to accomplish this task.

Thanks for your help.

Jason

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

SanfordWhiteman
New Participant
June 5, 2015

All the above will work, of course, but they permanently change the locale of a form.

Many companies work with leads with different preferred languages (obviously!).  Ideally, such companies would not maintain multiple forms solely for localization.  (It's already hard to maintain too many forms even without localization, thus the "global form" concept!)

If you do business in multiple languages, the goal (IMO) should be to temporarily localize a form based on the preferred language of the lead. A cool solution uses the Forms 2.0 API and advanced form setup.

First, create a rich text area on the form that stores all your translations, like this.   This allows all the languages to travel with the form (you could easily maintain the translations in a separate JavaScript file, but let's look at the all-in-one method for now).

Then, whenever you render the form -- you'll see in my demo that I'm using an embedded form, and as you know anything that works in embedded mode works in LP mode as well -- you use some standard JS to check the current language and translate field labels/placeholders/validation text appropriately.  The code block is the exactly the same for every form (it could also be saved to its own file to include with <SCRIPT src=...>).

For example, here you see a single Marketo form rendered differently by passing en-US (English-US) or fr-FR (French-France) as a query param:

Diederik_Marte4
New Participant
June 5, 2015

I have about 30 forms globally, which are actually only 3 forms (events, downloads, contact). And each one in 10 languages.

But there are other options, as you can access the form fields through the API (check developers documentation). You could create a dictionary with translations. And overwrite the default English.

6x Marketo Champion | Marketo Certified Solutions Architect (MCSA) | Marketo User Group Leader | International Speaker on Marketing Technology
Diederik_Marte4
New Participant
June 5, 2015

Hi, I think I started to reply on "Ideally, such companies would not maintain multiple forms solely for localization.  (It's already hard to maintain too many forms even without localization, thus the "global form" concept!)". Then mentioning I do have it set up in that way. Probably got distracted and hit submit before reading the rest of your comment. Not my brightest morning ;-)

6x Marketo Champion | Marketo Certified Solutions Architect (MCSA) | Marketo User Group Leader | International Speaker on Marketing Technology
Cecile_Maindron
New Participant
June 4, 2015

this is super simple. You just need to select localize French (under form settings) and if you don't like the way Marketo has translated French, you can customize on a field basis. Basically select field and update label and error message / instructions

Diederik_Marte4
New Participant
June 4, 2015

Edit the form -> Form Settings -> Locale. And you can also go into the individual fields to overwrite the error message.

6x Marketo Champion | Marketo Certified Solutions Architect (MCSA) | Marketo User Group Leader | International Speaker on Marketing Technology
Accepted solution
June 4, 2015