qualtrics JS capabilities | XM Community
Skip to main content
Question

qualtrics JS capabilities


Forum|alt.badge.img+1

So I’ve hit a bit of an issue with the carry forward options. I have a large list of items in multiple groups is that are presented randomly (5 random groups and 5 random items from the groups). Each participant rate each item and then will answer questions based on these ratings. They will then go on to rank all the items above a certain rating. These items will then be placed in a bracket style question and this not that questions. So basically there is a lot of logic that’s based on the original ratings and for the later questions to work I need to use something that can record the dynamic list presented to each participant. The qualities support said I could try to work it out with display logic and some carry forward logic. However with approximately 1400 items this seems rather unlikely.

so I was wondering, is it possible to use the JS features and abilities to construct a code that will record the answers and pass them on later in the survey. So if someone rates A, C, G as a 5 all of those options will carry forward. And then in the later questions will do A vs C and then record the winner and pass it on. Any help would be appreciated!

8 replies

Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • August 26, 2023

Hi @Riskin Lab,
I don’t think you gonna need too much JS to do that. Can you provide more detail?


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 4 replies
  • August 27, 2023

yeah of course what would you need to know?


Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • August 27, 2023

@Riskin Lab Can you draft out the survey flow with question type and the logic condition you want from it


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 4 replies
  • August 30, 2023

Ranking/item Part of Survey

Please rank these items from 1—5 in terms of how much you like them

 

For each item that you answered 3, 4 or 5, rank them in terms of which you like the most.

Why did you rank these items 3, 4 or 5?

 

 

Bracket style conservation questions (items ranked 3, 4 or 5, will be faced off with each other and the ‘winner’ of each level is then compared to the next one)

I think the conservation of [items 1] is more important than the conservation of [items 2]

1—5

I think the conservation of [items 1/2] is more important than the conservation of [ item 3]

1—5

I think the conservation of [item 6] is more important than the conservation of [item 7]

1—5

I think the conservation of [item 6/7/8/9/] is more important than the conservation of [item 1/2/3/4/5]

1—5

[…] with the rest of the 3, 4, 5 ranked items

funding questions

I would donate $1 of my own money to the conservation of [bracket 1 winner].

I would donate $10 of my own money to the conservation of [bracket 1 winner].

[…] with the rest of the bracket winners

 

This not that questions

I will donate to conservation [item 1] but not to [item 2]

1—5

[…] with the rest of the 3, 4, 5 ranked items

Does this help?


Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • August 31, 2023

@Riskin Lab Do you have at least the first part of the survey already? Like the ranking part, cuz I feel like this is just an idea in your head. Can’t help much with an idea.

Riskin Lab wrote:

Ranking/item Part of Survey

Please rank these items from 1—5 in terms of how much you like them

For each item that you answered 3, 4 or 5, rank them in terms of which you like the most.

Why did you rank these items 3, 4 or 5?

So 5 question for 5 groups, 5 random item, bring 3,4,5 forward. So 3*5=15 items go for the cup, right?

Riskin Lab wrote:

Bracket style conservation questions (items ranked 3, 4 or 5, will be faced off with each other and the ‘winner’ of each level is then compared to the next one)

I think the conservation of [items 1] is more important than the conservation of [items 2]

1—5

So if i choose 3, who will win? You want this kind of question or a bipolar question?


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 4 replies
  • September 1, 2023

Yeah so the ranking part has been already made, although it was tedious it was for the most part easy. So for example 25 starting items and whichever they rate as 3 or higher are used for the following questions. So if they rated 15 item as 3, 4, 4, 3, 5 … they would be listed in the next question. Then they would rank them as which they prefer most so if item A - E were present they would rank them as E B D C A. Then for the next section it’s would choose two items and put them against each other. A v. B, C v. E (and D can be incorporated with the next round). Which ever  item is chosen will face each other (so if A, and E we’re chosen) the next round would be A v. E and B v. C and D v. one of the items selected randomly. Then a final ranking would be given based on the answers ( ex. 1.E 2.A 3.C 4.D 5.B. So each “battle” is a bracket and the winner moves on. The winner of each bracket is used for the next question. 
 

does that help clarify a bit? Is there anything else that you would need to know? My main wonder is whether the JS question behaviour of one question can be link to others. So one question would save the responses and then send them to the next question.


Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • September 1, 2023
Riskin Lab wrote:

does that help clarify a bit? Is there anything else that you would need to know? My main wonder is whether the JS question behaviour of one question can be link to others. So one question would save the responses and then send them to the next question.

I just want to know if the number of item that go into the 1vs1 fight is static or not because it is a lot more complex if it’s dynamic.
If you use ranking question, the number is gonna be static because only 3 of them can be rank higher than 2. If it’s a multiple choice kind of scoring question. The number gonna be dynamic and it will make the case much more complex


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 4 replies
  • September 4, 2023

Oh I see I was confused what you were asking. Well the total number of items is 15 always but the number of items that go into the 1v1 is dynamic. Because a participant can score all of them below 3 or all of them above 3 or anything in between. I think I communicated it improperly though. In the initial question, 15 items are presented and participants are asked to rate them out of 5 (this was my initial mistake because they aren’t ranking them they are rating them). The second question that asks to rank them is based on the previous and the rest of the questions are based on the rating question so the number of items is dynamic.


Leave a Reply