How to use folders in the randomizer? | XM Community
Skip to main content
Question

How to use folders in the randomizer?


Forum|alt.badge.img+1

So I have two folders, access1 and access2. Each have four images, complete, bike, btm and walking. 

 

There are two questions. 

In the first question I want to show the complete image from a random folder of the two. The answer options are bike, btm and walking.

In the second question I want to show the image based on the answer of the first question. So if the random complete image belongs to access2 and the respondent selects bike, then in the second question, the bike image of the access2 folder should be shown.

 

How to do this?

I first made a randomizer with two branches of embedded data. 

In the first branch I define the images of complete, bike, btm and walking. 

The same for the second branch. 

 

But how to program the second question, follow up? 

2 replies

Forum|alt.badge.img+16

Hi, 

 

If your embedded data is

Folder 1

image1= (bike1 image)

image2= (btm1 image)

image3= (walking1 image)

Folder 2

image1= (bike2 image link)

image2= (btm2 image)

image3= (walking2 image)

 

You can use branch logics to check if the selected option in Q1 is which of the 3 images.

Then, piped that image to Q2 in another block.

 

For example,

Branch 1: If Q1’s selected option is equal to image1, Q2_Image= image1.

Q2 block: (Piped text for Q2_Image)

 


Forum|alt.badge.img

You can use the above setup….in the Embedded data just replace the image links where I have mentioned Insert Image links here.


Leave a Reply