Add fixed-place attention check to randomized survey | XM Community
Skip to main content

Hello!

I’m creating a survey with 41 questions in total. I plan for there to be 40 content questions with 1 attention check. I want the 40 questions to be presented in a randomized order to each participant, but I want the attention check to always be in a fixed spot near the end. How would I do this while ensuring there are no repeat questions?

 

Thank you!

If all the questions are in the same block, you can use Advanced Randomization on the block to randomize all questions except the attention check.


@TomG No, my questions are not in the same block. Each question contains four parts that all relate to the same example. Right now, I have configured my survey with loop and merge, since 3 out of four of the parts stay the same for each example. Would there be a way to add a fixed attention check with a randomized loop and merge? If not, I could also create a separate block for each example if there was a way to add the attention checks this way. Please let me know. Thank you.


@TomG No, my questions are not in the same block. Each question contains four parts that all relate to the same example. Right now, I have configured my survey with loop and merge, since 3 out of four of the parts stay the same for each example. Would there be a way to add a fixed attention check with a randomized loop and merge? If not, I could also create a separate block for each example if there was a way to add the attention checks this way. Please let me know. Thank you.

You can use JS to pipe the current loop number into an embedded data field, then use it in display logic for the attention check question. Put the attention check question at the end of the block with a page break before it.  Add the JS to a question before the page break.

Example:

Qualtrics.SurveyEngine.addOnload(function() {
Qualtrics.SurveyEngine.setJSEmbeddedData("currentLoop","${lm://CurrentLoopNumber}");
});

Base display logic on embedded field __js_currentLoop.