Hello. I'm having trouble because the randomization function overrides the display logic/skip logic/survey flow function.
What I'm trying to do is to show six images (2 images at a time, the order of six images is randomized) and stop showing the images once a participant chooses one of the images. Currently, I ask "Are you willing to accept either one of the offer?" and want to skip the rest of the images and move to the next block. So, some participants will make a decision on the second round (see 4 images and do not see the rest 2 images) and some participants will make a decision on the final (third) round (see all 6 images).
If doesn't matter whether I use the randomization function in the block or loop and merge function as long as I can make the survey work as I explained. I tried both. However, as the randomization or loop function override survey flow/display logic/skip logic, I could not figure out how to stop participants from seeing the rest of the images once they decide to choose one of them.
Here is the survey to help your understanding. Currently, participants go through all three rounds no matter what answer they choose on the question. https://uiowa.qualtrics.com/jfe/form/SV_bQOy6dWegMuC4D4
I referred to this thread and tried java script on loop and merge.
https://stackoverflow.com/questions/25766238/prematurely-exiting-a-loop-and-merge-block-in-qualtrics
Qualtrics.SurveyEngine.addOnload(function ()
{
this.questionclick = function(event,element)
{
console.log(event,element);
if (element.type == 'radio')
{
var choiceNum = element.id.split('~')[2];
if (choiceNum == 2)
{
Qualtrics.SurveyEngine.setEmbeddedData("EndLoop", choiceNum);
}
}
}
});
This is the code I tried. It didn't work as described.
Can anyone help me with the premature exit of the randomized block/loop&merge? It doesn't matter how it is achieved (survey flow, javascript, etc.) but I have zero knowledge in developing.
Thank you so much in advance!
How can I stop (early exit) randomized block (or loop and merge) under certain condition?

Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.