Carry Forward responses into question and not into choices | XM Community
Skip to main content
Solved

Carry Forward responses into question and not into choices

  • January 15, 2025
  • 5 replies
  • 64 views

Forum|alt.badge.img+6

I want to format a question like the example below and have only the options that were selected in the previous question to show up. I know I could set it up so each table has one of the choices as piped text and then do display logic, but I don’t want to have gaps in the table where a choice should be that wasn’t selected. I would like to put all the options that were selected in the previous question into the table into their own cells, or at minimum put each choice that was selected into it’s own line below the main question. 

 

Best answer by TomG

@gsheppard,

Here is code that converts carryforward choices into a list in the same question. You’ll need to adjust a bit to add the list to a different question.

View original

5 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • January 15, 2025

@gsheppard,

You can carryforward the choices to another question on the same page, then use JS to hide that question and copy the labels of the displayed choice labels into your question text.


Forum|alt.badge.img+6
  • Author
  • Level 2 ●●
  • 18 replies
  • January 16, 2025

@TomG I created the carry forward question, and added the JS to hide the question. How would I add the labels of the displayed choices into the final question text? Are you saying to use the piped text for each one?


Forum|alt.badge.img+6
  • Author
  • Level 2 ●●
  • 18 replies
  • January 17, 2025

I put this piped text into the end of the question and the choices are showing up, but it’s all on one line now separated by columns. How can I break it up so each choice is on it’s own line?


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • Answer
  • January 17, 2025

@gsheppard,

Here is code that converts carryforward choices into a list in the same question. You’ll need to adjust a bit to add the list to a different question.


Forum|alt.badge.img+6
  • Author
  • Level 2 ●●
  • 18 replies
  • January 17, 2025

@TomG thanks. I ended up just using that code to display the bullet list above the question and then asked the question which ended up working pretty well.


Leave a Reply