Marketo Dynamic Form Field Labels - Multiple Languages

SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Dynamic Form Field Labels - Multiple Languages

Browyn, one more thing while we're on the topic: as a veteran of some major after-the-fact localization projects, I want to stress that you should localize from the beginning if you can. That is, even if your only language is English to start, store English in a translation/dictionary file rather than hard-coding it. You will thank yourself later. Frankly I can't imagine managing even two otherwise identical forms... every time you want to change the length of a field or change custom CSS... *shudder*.

Anonymous
Not applicable

Re: Marketo Dynamic Form Field Labels - Multiple Languages

Hi Sanford,

You make a very valid point here. We are going to investigate into this a little further -- to your point, we don't want to overcomplicate things down the track when we need to update fields/CSS.

Thank you again for your valuable insight - much appreciate!

Bronwyn

Robb_Barrett
Marketo Employee

Re: Marketo Dynamic Form Field Labels - Multiple Languages

Can you walk me though this code at some point?  I'd like to understand it in better detail as it's something I could use.

Robb Barrett
SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Dynamic Form Field Labels - Multiple Languages

Sure, no problem.  Hit me at sandy@figureone.com

Jeff_Boakye_Yia
Level 1

Re: Marketo Dynamic Form Field Labels - Multiple Languages

Hi Sanford, this is very handy! Thanks for this! I've been able to translate mine entire form except for the "Please Wait" button text, that shows after hitting on the submit button. Please any tips how I will be able to change that as well in the script? Thanks!

SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Dynamic Form Field Labels - Multiple Languages

Set the Waiting Label to completely empty first:

pastedImage_1.png

Then add a submitProgress property to your data block:

{
"en-US" : {
"LastName" : {
"label" : "Surname",
"validation" : "Make sure that's your real last name.",
"submit" : "Go",
"submitProgress" : "Going..."
}
},
"fr-FR" : {
"FirstName" : {
"label" : "Prénom",
"placeholder" : "Victor",
"submit" : "Envoi",
"submitProgress" : "Envoi en cours..."
}
},
"jp-JP" : {
"FirstName" : {
"submit" : "アンサブスクライブ"
}
}
}

And the latest code from https://codepen.io/figureone/pen/mJWgjE

Jeff_Boakye_Yia
Level 1

Re: Marketo Dynamic Form Field Labels - Multiple Languages

Awesome! It worked! You're simply the best!