0 votes
in SoSci Survey (English) by s275298 (130 points)

I have a question containing 19 items. I would like to shuffle these items and display them on two pages. I have found directions for that, but using that direction does not work with my number of items, since I would have to define chunks of items and the same number of items would be displayed on each page. Since I have an uneven number of items, this does not work. Is there another way to do this?

1 Answer

0 votes
by SoSci Survey (328k points)

ince I would have to define chunks of items and the same number of items would be displayed on each page

Using array_chunk() with a chunk size of 10 will create one array with 10 items and the other one with 9 items. So, this code shall work fine.

If it does not, please post the PHP code that you're currently using.

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

...