Hi, yes of course! Sorry for not doing it.
So, for the page in which the presentation stimulus happens, currently we have this code:
loopToPage('loopend', 2); #for now I'm looping 2x
$fragen = array(
0 => array('VR03', 'VR06', 'VR07'), #first batch of questions
1 => array('VR08', 'VR09', 'VR10'), #second batch of questions
);
registerVariable($fragen);
and for the 3 other pages with questions, we have:
$i = loopIndex();
$set = $fragen[$i];
question($set[0]); #.... 1, and 2 for the subsequent ones.
What is working: The loop is happening twice, and the questions are correctly being saved separately for each time it loops.
What is not working: - Since I implemented this option of more question variables per loop, the shortclip selected at each loop is the same. And we need it to ramdonly present every video. The code for selecting the stimuli is the following:
if (value('RD01') > 0) {
replace('%image%', 'RD01', 'response');
html('<video autoplay>
<source src="%image%" type="video/mp4">
</video>');
}
- Also, I haven't managed to create a way to save the value of each shortclip shown. So each time the loop happens, the RD01 value is substituted, and we need to know which video was presented for the 3 questions.
I hope this helps! :)
Thanks a lot!