Randomization with later recall? | XM Community
Skip to main content

Hi, I am having a randomization issue and I could use some assistance. Let’s say my survey has two blocks, Block A and Block B. In Block A, I would like to display three images on one page: the first one will be randomly selected from images 1, 2, 3, 4, 5, or 6; the second will be image 7; the third will be image 8. These three images need to be displayed together on the same page (as a text/graphic question) in randomized order.

Later, in Block B, I would like to randomly display one image: either image 7, or image 8, or the selected image from set 1-6 that was displayed in Block A.

I have been trying to accomplish this using the randomizer in survey flow but I have failed so far. I can get it to do what I need it to do in Block A, but when I get to Block B, it displays an image, but not the correct one. Thanks in advance for any ideas.

When you use the randomizer for image 1-6 in block A, for each image, you are using one embedded data element that has the same name like “randomimage”=<img src=… > for each image, right?

 

Perhaps you can try using the embedded data in block A for block B:

Create a randomizer in block B that has 3 embedded data elements.

first embedded data element “blockBimage” = embedded data “randomimage”

second embedded data element “blockBimage” = <img src=...image 7>

third embedded data element “blockBimage” = <img src=...image 8>

 


Create an embedded data and store the value from Block A.

 

In block 3, Create three questions, one for selected answer from Set 1 -6, another for 7 and one for 8. 

 

Use the randomized in survey flow to randomize these three questions


Hey ​@tonydonato You can try to replicate the below setup.

STEP 1:- Create 6 such embedded data fields and move it inside a randomizer.

Each embedded data value is different as it refers to the URLs for the respective image to be shown (Images 1-6). Assign randomizer value to be 1.

STEP 2:- After step 1, place Block A which will contain 3 text/graphic questions. 

These 3 embedded data will have respective image URLs. - image selected by the randomizer between image 1-6, 7th image, 8th image. Out of these 3 any one will be displayed so assign the randomizer value accordingly.

STEP 3: - 

Q1 will have the pipe text for the embedded data ‘A’ which was created in STEP 1. Q2 and Q3 will have the respective images (7th image and 8th image).
​​​​​​

STEP 4:-

Block B will contain the pipe text value for the embedded data ‘B’ which was created in STEP 2.
This block will be placed at the very end in the survey flow (after step 2 is built).

END!

 


Thanks for the ideas. I got it working using the framework outlined by Chee Heng_SZ.


Leave a Reply