Is there a way to display library messages in a survey? | XM Community
Skip to main content

Hi all - 
I have a survey that is distributed in four languages. In the survey, I need to display a definition of an event type (there are four event types). I have embedded data that indicates the event type in the contact list. The best way I can think of to display the definition is to have branching logic that sets additional embedded data for the definition based on the combo of Q_Language+event type (e.g. Chinese + Fundraising branch will set a “Definition” embedded data field to have the definition we use of fundraising events in Chinese) , but then I have to create a lot of branches for the 16 combos of language and event type. Since library messages can be translated, I was thinking those would be easier to use, but I don’t believe there is any way to do that. Am I wrong, or any other suggestions to keep survey flow simpler?

Thanks in advance!

Maybe I don't fully understand the problem right now.

Why is a branching logic just based on the event (= 4 branches) not sufficient? The respondent should already be on the correct language. Can’t you just display the definition of the event type in a normal questions (which has the four translations)?

 

Best regards
Manfred


Follow the below steps to implement this:

  1. Create a JS hidden question at the beginning of the survey with option as the definitions of the event type. Add display logic on each options to display only if event embedded data has respective value. Use below code to create JS hidden question: 
    jQuery("#"+this.questionId).hide();
    this.clickNextButton();
    1. Now use ‘Displayed Choices’ pipe in to show required event defination. Example below: 
      ${q://QIDXX/ChoiceGroup/DisplayedChoices}
      1. Since it is a question-option, we will be able to translate it and use it in piping.

Leave a Reply