Translated SmartCapture
- Get link
- X
- Other Apps
Heather Correa (Marketing Technology Manager at CJ)
I have a form in French and while I want the values to display in French, when submitted the values should be in English in the data extension. Is this possible?
Lukas Lunow (A.P. Moller Maersk | Ex-Salesforce)
My suggestion would be to build the smart capture in English, using the standard interface. Then use JS/jQuery to update the front end labels, drop downs, etc. to the language according to visitor's preferences.
<label for="pets">Your favourite pet:</label>
<select id="pets" name="pets">
<option value="cat">Cat</option>
<option value="dog">Dog</option>
<option value="horse">Horse</option>
</select>
Without going into details of jQuery (there are countless examples out there) you could use following function to replace the values:
$('select option:contains("Horse")').text('Cheval');
This will appear as French to the user, but the values of the dropdown will still be in English. I will recommend using a JS code resource with Ampscript, together with a translation data extension to manage all the different language versions.
- Get link
- X
- Other Apps
Comments
Post a Comment