Pipe answers from a previous matrix likert question | XM Community
Skip to main content
Question

Pipe answers from a previous matrix likert question

  • June 6, 2022
  • 1 reply
  • 80 views

MikeW
Level 5 ●●●●●
Forum|alt.badge.img+14
  • Level 5 ●●●●●

I'd like to pipe answers from previously answered matrix likert questions e.g. from Question A to Question B. I don't think I can do this with Default Choices, so assume I need to use JavaScript to "tick" the options that were selected at the previous question. What's the best way to do this? I have about 5 questions each with about 8 statements x 100+ scale points.
Screenshot 2022-06-06 165938.png

1 reply

grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • July 12, 2022

You will need to pipe in the values from QuesA to QuesB in js then based on what was selected use eq() to find the respective choice(s) and then simple prop('checked','true') should do the trick.
Example:
jQuery('tr').eq(0).find('.c4').prop('checked','true')