Piped Text Customization | XM Community
Skip to main content
Solved

Piped Text Customization

  • October 13, 2021
  • 4 replies
  • 431 views

Hello,
I am trying to pipe text from a multiple choice question with multiple answers allowed, but there is one item that I don't want to display ("I have reasons that are not captured in this list") because that item leads to a text entry box and I have already piped text from the box. It looks something like this:
image.pngIs there a way to specify which items, if chosen, can be displayed in the piped text? Thanks!

Best answer by TomG

I think the easiest approach is to put the statement you don't want visible in a span with a class then hide it in the follow-up question.
In your original question the choice text is:
I have reasons that are not captured in this list:
JS for the follow-up question:
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .hidePipe").hide();
});

4 replies

jmborzick
QPN Level 5 ●●●●●
Forum|alt.badge.img+41
  • QPN Level 5 ●●●●●
  • October 14, 2021

Shokouh If I understand your problem correctly, I'd use survey flow and embedded data. If you set the first question in one block and the second question in another block, you can add embedded data between the two blocks.
In the flow, use branch logic based on the person's response to the first question. If they don't select "Other" you can create an embedded data field containing their choices from the first question and then pipe that text into the second survey question.


MSobotta
Level 4 ●●●●
Forum|alt.badge.img+25
  • Level 4 ●●●●
  • October 14, 2021

There are two approaches I can think of and it's up to you which fits your needs better.

  1. Store your piped text as a embedded data before the second statement

  2. Create an If statement for both scenarios

  3. Set the one embedded data correctly for each of them

  4. Pipe in the embedded data instead of the answer text

  5. Create two follow-up statements

  6. Create an If statement for both scenarios

  7. Pipe in the correct statement for both scenarios.

The first solution is a little slicker and the preferred method in my honest opinion.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • October 14, 2021

I think the easiest approach is to put the statement you don't want visible in a span with a class then hide it in the follow-up question.
In your original question the choice text is:
I have reasons that are not captured in this list:
JS for the follow-up question:
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId+" .hidePipe").hide();
});


  • Author
  • October 14, 2021

Hi all, thank you so much for the help! Much appreciated.
TomG that worked beautifully! Thanks so much :)