Post:
Hello everyone,
I am running my first survey using Qualtrics and need help implementing a specific randomization constraint.
Survey Setup:
- Participants are assigned to one of three groups: Baseline, Label1, or Label2.
- Each participant sees 12 images, each paired with a question (1 image per block).
- The order of these 12 blocks is randomized.
Treatment Groups (Label1 & Label2):
- In these groups, 3 out of 6 specific images (from the total 12 images) are randomly assigned a label.
- The selection of which 3 images get a label is also randomized in each run.
- This means that each participant in the treatment group sees:
- 3 labeled images (randomly chosen from a set of 6)
- 9 unlabeled images
Problem:
- I want to ensure that at least one of the three labeled images appears within the first three images shown to the participant.
- Without this condition, the labeled images might only appear at the end of the survey, reducing the effectiveness of my treatment.
What I Tried:
- My idea: If a participant is in Label1 or Label2, check the first three images before they are shown.
- If none of these images are from the set of 3 labeled images, randomize again until at least one appears early.
- Since each image in Qualtrics has a unique URL (stored in the Qualtrics Library), I thought I could check the image URL of the first three displayed images before confirming the order.
- I attempted to implement this using JavaScript, checking if at least one of the first three images contains a labeled image URL.
- However, I couldn’t get it to work properly within Survey Flow.
Question:
Is there a way to enforce this condition within the Survey Flow or using JavaScript in Qualtrics?
Any suggestions or workarounds would be greatly appreciated!
Thank you in advance for your help.
Best,
Fabian