I have a pick/group/rank question which has 8 items that respondents must assign to two possible groups. The items are randomized, but I think the item numbers stay the same despite randomized presentation order for javascript purposes. Items 1-4 are all Category 1 items, and items 5-8 are Category 2 items. I would like to write code to count how many items from category 1 were dragged into group 0, AND how many items from category 2 went into group 0. I think my code needs to take the structure of:
if item 1 is in group 0, then increment group0cat1count.
... through item 4,
if item 5 is in group 0, then increment group0cat2count.
... through item 8.
However, I'm having problems identifying how to use javascript to get assigned groups for specific items. Could someone please advise on how to get group assignments for individual items in Qualtrics Javascript? Thank you.
Page 1 / 1
If we have only 8 items then we can also use Branch logic and Math operation to get the numbers.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.