Randomization within a block | XM Community
Skip to main content

Dear all,

I have a question about randomization within a block.

I have 4 blocks and one of the 4 blocks is randomly distributed to a participant.

Within each block, I have 20 questions.

Participants see all 20 questions in randomly assigned order (Option A or Option 😎.

Here are the two options I would like to have. The differences are for the two groups of underlined questions.

Option A: Q1--Q9, Q10, Q11, Q12, Q13, Q14, Q15, Q16, Q17-Q20

Option B: Q1--Q9, Q14, Q15, Q16, Q12, Q13, Q10, Q11, Q17-Q20

Could anyone give some suggestions on how this could be done?

Thank you very much!

@txu Advance randomization will give you what you want. I made an example for you.
 

For how to do it just follow this link:https://www.qualtrics.com/support/survey-platform/survey-module/block-options/question-randomization/#AdvancedRandomization
Let me know if this helps


@dxconnamnguyen Thank you for your reply. I am aware of the advanced randomization function.

Just not sure it gives what i need. For example, I do not want to change the order of Q10 and Q11.

Also the order of Q14, Q15, and Q16 can not be changed.

I am trying to only randomize group 1 (Q10 and Q11) and group 2 (Q14, Q15, Q16).

The order of questions within each group is not randomized.


@txu Oh I see, you want to randomize the ORDER of (Q10,11) and (Q14,15,16) . Well I don’t think it’s possible within a block. We gotta do in in the survey flow

  • You can show 1 of 4 group:
  • Within each group make a flow like this

    Add this JavaScript to your Q10

    Qualtrics.SurveyEngine.addOnload(function()
    {
    Qualtrics.SurveyEngine.setEmbeddedData( 'Q10showed', "1" );
    });

    This should give you that random order. Repeat with other group.
    Let me know if it helps


@txu I would suggest please make an embedded variable in the survey flow with the name 'Order’ and store the order of blocks within it. After you can use that Order variable under the Randomizer using branch logic. Hope this approach maybe can hep you..!

 

 


@dxconnamnguyen Thank you so much! I was stuck on the branch logic. And was not aware of the java script. It all worked out. Thanks again.


@Shobhit  Thank you for the reply. I have never used “Order” before. It is great to learn something new.


@txu Happy to help 👍


Leave a Reply