How to get piped text in the second question on the same page? | XM Community
Skip to main content

Hello,
I want to pipe the text from the first question, if the say yes or no. And, the second question should appear then on the same page asking Why "yes or no"? I can get the question to appear after the first question response but no with no piping.

The embeddedData usually needs a page load to store to the variable. You can use JS or just break the two questions on different pages.


This isn't possible using the default methods. Text piping etc needs a page break. Based on what you have described, you could create two questions, one for yes and one for no and then use in-page display logic to display either one of them.


https://www.qualtrics.com/community/discussion/comment/33829#Comment_33829Thanks pogi . Are you aware of any JS code that can help?


https://www.qualtrics.com/community/discussion/comment/33830#Comment_33830Thanks ahmedA


Do you need the text to be saved in one open-ended field? If not, then you can have two follow up questions that hard code the response, use display logic with in-page logic selected.
Q1 yes/no
Q2 why no? where Q1=no & in-page display logic is checked
Q3 why yes? where Q1=yes & in-page display logic is checked
This might even make your coding more straight forward.
https://www.qualtrics.com/support/survey-platform/survey-module/question-options/display-logic/


https://www.qualtrics.com/community/discussion/comment/33831#Comment_33831I'm not a coder. You would basically want to store the input/selection to a JS variable onBlur then when onFocus for the next question it should be able to change but that might look weird to the user.


Leave a Reply