Dynamic privacy link based upon country and not only language. | XM Community
Skip to main content

Hello everyone,
I am looking for an idea or solution to the following problem:
I have to create a questionnaire in 5 languages and insert a link to the privacy policy. The problem is that one language can be associated with several countries (e.g. French for both France and Belgium).
What is the best way to configure the question type Text / Graphic to meet this requirement?
I thought about using a Piped Text via Survey Flow, e.g.: if language is FR and country is BE then the Embedded Data ‘link_privacy’ is ‘<a href=’https://test/fr-be/privacy‘>Politique de confidentialité</a>’, but this is not a robust solution. I could have the browser set to English and visit a site in French, at which point logic would dictate that the text above would be written in French instead of English.
An alternative I have considered is to create many texts/graphics, one for each language+country combination, and set up the display logic. Then I would have the translations in various languages and the correct link, but that doesn't seem like an easy solution.


Do you have any quicker and/or more robust suggestions?
Thanks

How are you distributing the survey? if you are uploading a contact list, you can just have the link uploaded as embedded data field based on their country/language - that’s what we do, it’s coming from our CRM system. If they’re selecting language and country as part of the survey, then yes you’d need to have logic to select appropriate value within the survey flow.


Translating the question would take care of the link description (e.g., Politique de confidentialité). 

Assuming you have an embedded data field for country (e.g., cc=BE), for the url you could pipe in the language and country:

https://test/${e://Field/Q_Language}-${e://Field/cc}/privacy

You could use a  bit of JS to convert the url to lower case in the addOnload function:

Qualtrics.SurveyEngine.addOnload(function() {
var link = this.getQuestionContainer().getElementsByTagName("a")"0];
link.setAttribute("href",link.getAttribute("href").toLowerCase());
});

 


Leave a Reply