It sounds like you are limiting the number of loops in loop randomization. You should remove the limit and turn off loop randomization completely. Randomize the colors in the question on which the loop is based. This will do two things:
- Display the loop question for all colors selected (i.e., if red is selected 100 times it will be display 100 times in the loop).
- Present the colors in the in loop in the same randomized order they were displayed in the color question
Thank you for responding so quickly.
I am having them displayed in a random order each time, but the respondent can choose multiple colors (if they want). But I want Qualtrics to pick a random color from the ones they chose, but if a person said more than one color, I do not want them to be counted against the quota
Thank you for responding so quickly.
I am having them displayed in a random order each time, but the respondent can choose multiple colors (if they want). But I want Qualtrics to pick a random color from the ones they chose, but if a person said more than one color, I do not want them to be counted against the quota
Now I understand. Add JS to the first question in your loop that copies loop and merge field 1 into an embedded data field then base your quota logic on the embedded data field value.
First define the embedded data field in the survey flow:
Set embedded data: __js_quotaColor (do not assign value)
Set its value in the loop:
Qualtrics.SurveyEngine.addOnload(function() {
Qualtrics.SurveyEngine.setJSEmbeddedData("quotaColor","${lm://Field/1}");
});
Thank you for responding so quickly.
I am having them displayed in a random order each time, but the respondent can choose multiple colors (if they want). But I want Qualtrics to pick a random color from the ones they chose, but if a person said more than one color, I do not want them to be counted against the quota
See if this works for you.
Respondent can chose all 7 colors at once. But since you want qualtrics to get random image of it. you can set the embedded data to capture the color.
Then, lets assume Quota already has 7 reds, 5 blues.
Based on quotas, you set condition based on which has least filled. You can get completes for that least filled color
What I ended up doing was creating a second question of…
We are going to ask you questions about upipe] are you ready?
- Yes
- No
And did my quota based off of this. So my quota logic was
- Select color is selected from Question 1
- Select color is selected, select yes