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:
Is there a way to specify which items, if chosen, can be displayed in the piped text? Thanks!
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.
There are two approaches I can think of and it's up to you which fits your needs better.
- Store your piped text as a embedded data before the second statement
- Create an If statement for both scenarios
- Set the one embedded data correctly for each of them
- Pipe in the embedded data instead of the answer text
- Create two follow-up statements
- Create an If statement for both scenarios
- Pipe in the correct statement for both scenarios.
The first solution is a little slicker and the preferred method in my honest opinion.
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();
});
Hi all, thank you so much for the help! Much appreciated.
TomG that worked beautifully! Thanks so much
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.