Re: Can marketo auto change form field language?

Anonymous
Not applicable

Can marketo auto change form field language?

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?
Tags (1)
5 REPLIES 5
Josh_Hill13
Level 10 - Champion Alumni

Re: Can marketo auto change form field language?

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.
Anonymous
Not applicable

Re: Can marketo auto change form field language?

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 - Community Moderator

Re: Can marketo auto change form field language?

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.
Anonymous
Not applicable

Re: Can marketo auto change form field language?

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 - Community Moderator

Re: Can marketo auto change form field language?

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