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

How to get piped text in the second question on the same page?

  • January 27, 2021
  • 6 replies
  • 437 views

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.

6 replies

pogi
Level 2 ●●
Forum|alt.badge.img+14
  • Level 2 ●●
  • January 27, 2021

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.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 27, 2021

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.


  • Author
  • January 27, 2021

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


  • Author
  • January 27, 2021

bstrahin
Level 6 ●●●●●●
Forum|alt.badge.img+38
  • Level 6 ●●●●●●
  • January 27, 2021

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/


pogi
Level 2 ●●
Forum|alt.badge.img+14
  • Level 2 ●●
  • January 27, 2021

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.