Randomizing Blocks and Integrating Branch Logic to Show Selected Blocks | XM Community
Skip to main content

Hi there,

 

I would like to randomize 10 blocks and display a few only when the selected question from the previous block is answered.

 

For example, randomly show Block A, if “Yes” is selected from Block A question 1.1, then randomly display one of the rest 9 blocks. Then, suppose Block C is shown, if “Yes” is selected from Block C question 1.1, then randomly display one of the rest 8 blocks.

@jintao2740 As I understand it, you want to randomize 10 blocks, if they say YES to the first question. Then show the next randomized block.
You can do it just with this survey flow

  1. An initial yesflag to fuel the randomizer
  2. Radomizer with 10 elements to stir up the order of 10 blocks
  3. Condition if yesflag = 1.
    Inside it, show the block and make another condition to set yesflag=0 if the 1.1 question is “No”

So if they answer “No”, all remain blocks are skipped, if “Yes”, show the next random block

 

Hope this helps


Leave a Reply