Overall goal
To investigate peoples preferences, I want to display four images of which they can always pick one. I want to do this 6 times per participant. Depending on a previous question i want to alter the selection pool for the images. In each selection pool itself there are two categories of pictures A and B. For the 6 pages, 2 should contain 1 A and 3 Bs, 2 should have 2 As and 2 Bs, and 2 will need 3 As and 1 B. In these pools all pictures should be shuffled and the order of the A and B combinations should also be randomized. No picture should be shown more than once. The Naming convention for the Pictures is 1.A_00. With the first number the pool, the second the category and the last one just a id. As data i need to know what the Full picture name was for each choice.
Problem
I am not able to adapt the pictures that are loaded into my questionare. I have tried to do all of it with php code but have not been able to. Another attempt to dynamically vary the name of the html tag
for each picture has also not been succesful.
Question
Does anyone have an idea how i could approach this problem in an elegant way?