Skip to main content
March 12, 2015
Question

Can marketo auto change form field language?

  • March 12, 2015
  • 3 replies
  • 2988 views
Is it possible to have one form with multiple langagues for the different fields? Just as importantly, how does the form detect the langauge, or do I need to build that?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Josh_Hill13
Level 10
March 12, 2015
no.

You need to use Dynamic Content and make that section dynamic with several form versions.

I suppose an alternative would involve a lot of API and jquery.
March 12, 2015
Thanks for the answer! Quick 2nd question if you don't mind.
If I had three different langauges, I would have to build 3 different forms?
I pressume then I would have switch the forms out based on my own langauge detection code.
SanfordWhiteman
Level 10
March 13, 2015
It's extremely easy to enable this with basically one line of JavaScript (no jQuery).

This is the same form in two different languages:

http://s.codepen.io/figureone/debug/GgYXvE?#en-us
http://s.codepen.io/figureone/debug/GgYXvE?#en-gb

The language translations are all managed within the Form Editor on Marketo.  In this example the form label Color/Colour is a rich text field using the standard HTML `lang` attribute to separate the languages:

<span lang="en-us">Favorite Color:</span>
<span lang="en-gb">Favourite Colour:</span>

Then CSS is used to display the one that matches the current language.  In the demo, the language is passed in the #hashtag but it could come from anywhere.
June 26, 2015

How about validation messages on each field? Based on past articles, Forms 1.0 seemed to have some documentation on this, but in looking my instance of 2.0, nothing seems to indicate that you can change it.

SanfordWhiteman
Level 10
June 26, 2015

You can change everything.  I actually have a far more advanced demo discussed and linked here.