Piping non-English select choices to Salesforce | XM Community
Solved

Piping non-English select choices to Salesforce


Badge

Hi folks,
We have an international study that can be filled in in multiple languages. Instead of sending the answer choices of the select questions in English, the integration sends answers in whatever language the survey was filled in. This creates an issue on the SF end as it doesn't recognize the value.
Besides recoding all the variables is there a way to make sure that answers are sent in English?
Thanks in advance!

icon

Best answer by TomG 16 June 2022, 18:14

View original

10 replies

Userlevel 7
Badge +27

You could add a question to the end of the survey that uses JS to switch the language to English.

Userlevel 7
Badge +18

I have the same issue. And I am not proficient in JS so can't use that option unless i'm spoonfed that solution.

Userlevel 7
Badge +27

https://community.qualtrics.com/XMcommunity/discussion/comment/47008#Comment_47008This should do it:
Qualtrics.SurveyEngine.addOnReady(function() {
if(jQuery("#Q_lang").val()=="EN") this.clickNextButton();
else jQuery("#Q_lang").val("EN").trigger("change");
});

Userlevel 7
Badge +18

TomG Thanks! So does this change all values across all questions in the survey to English? Or is there a need to specify by question?

Userlevel 7
Badge +27

https://community.qualtrics.com/XMcommunity/discussion/comment/47015#Comment_47015I think it will change it across the board. I think any values sent to SF are in the current language at the end of the survey.

Badge

Hi Tom,
Thanks for your reply! Where do you recommend to paste the js code?

Userlevel 7
Badge +27

https://community.qualtrics.com/XMcommunity/discussion/comment/47066#Comment_47066Attach it to a text/graphic question on its own page at the end of the survey.

Badge

Screenshot 2022-08-05 at 14.22.25.pngHi Tom,
I pasted the code as you recommended; however, I get this loading signs and the page just doesn't load. Any recommendation on what to do?

UPDATE: You may ignore my comment. It all worked. I use British English, hence the code needs to be adjusted to "EN-GB". Thanks a lot for helping out!

Userlevel 4
Badge +12

Hi @TomG any ideas on how can we send non-english open end comments into english language or a translated comment into Salesforce?

Userlevel 7
Badge +27

Hi @TomG any ideas on how can we send non-english open end comments into english language or a translated comment into Salesforce?

Use a translation API called from a web service.

Leave a Reply