Get all Selected choices | XM Community
Solved

Get all Selected choices

  • 8 January 2019
  • 1 reply
  • 18 views

Userlevel 1
Badge +2
My survey is comprised of two blocks and each block has multiple questions. I am trying to collect all the responses in two separate arrays from each block. These arrays will later be used in another block. Since I am new to JS and Qualtrics, I am having trouble coding this. Any help will be appreciated.
icon

Best answer by fleb 8 January 2019, 22:17

View original

1 reply

Userlevel 5
Badge +6
You can create the array using piped text. For example like this: `var myArray = ["${q://QID1/ChoiceGroup/SelectedChoices}", "${q://QID3/ChoiceGroup/SelectedChoices}", "${q://QID3/ChoiceGroup/SelectedChoices}"]`
I would use single parentheses instead of double ones since I was not able to execute the code with double ones one time. However, I'm not able to post my answer with single parentheses in the code markdown.

Leave a Reply