0 votes
in SoSci Survey (English) by s137586 (150 points)
closed by SoSci Survey

Hello

I would like to rotate question blocks (1 block always consists of two pages) on a single page.
I have tried the following code:

if (!isset($blocks)) {
  // Liste mit Frage-Kennungen und zugehörigen Bildern
  $blocks = [
    ['EG07', 'EG13'],
    ['EG08', 'EG14'],
    ['EG09', 'EG15']
  ];
 
  // Die Liste mischen
  shuffle($blocks);
  // Die Listen auf allen Seiten verfügbar machen
  registerVariable($blocks);
}


  foreach ($blocks as $kennung) {
    question($kennung);
}

Rotating the blocks works, but I don't know how to display the questions.
With the foreach I tried to loop through the blocks, but of each block only the first question is presented... but never the second one

Any ideas?

Thanks!

by SoSci Survey (327k points)
It's the same person here, responding in English and German ;)

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...