Hello,
Thank you for your help so far. So, the image code is working now, I had to change number of draws per interview. Earlier it was set to 1.
Also, earlier, I was trying to automate the repeated questions loop and image change loop stimulus on one page. But then, as soon as I change the page with looppage, the responses to the answer will override if I dont manually create copy of those questions (also you said two looppage won't work).
Right now, I have a total of 120 image stimulus and for each stimulus same two questions (with randomized sequence of items) will be answered for which I have provided the code below. However, I am struggling to put these codes together.
For image display:
// Show the question or item 'IR01'
show('IR01'); // here the image codes are stored in random generator
// Retrieve the values (labels) from 'IR01'
$images = array_values(valueList('IR01', null, 'label'));
$image = loopPage($images);
// Show the image
html('<div><img src="'.$image.'" alt=""></div>');
For display of questions:
$q1=random_items('FP04',6);
question('FP04',$q1); // first questionnaire
$q2=random_items('AA02',2);
question('AA02',$q2); // second questionnaire
I am okay manually creating 120 pages and pasting them on every page (would be happy if there's another way). I don't know if rotatepage will help in that context. Anyway, how can I combine these codes placing them side by side and making sure that a random image without repetition appears on different pages.
Best,
Kartik