Vielen Dank für die Antwort. Die Reihenfolge scheint dennoch nicht im Datensatz gespeichert zu werden.
Die Frage habe ich nicht zusätzlich eingebunden. Auf der Seite ist lediglich noch ein Textfeld, das eine Definition enthält, ansonsten nur der PHP-Code wie oben beschrieben.
Ja, einige Items doppeln sich über die Seiten hinweg.
Dazu erscheint jetzt auch noch die Fehlermeldung:
There is an error in the PHP code:
Questionnaire Error: Undefined variable $elements
line: 11
PHP code
008 }
009 $i = loopPage(count($itemsA201));
010 question('A201', $itemsA201[$i]);
011 for ($i=0; $i<count($elements); $i++) {
012 $id = id('IV01', $i + 1);
013 put($id, $elements[$i]);
014 }
Questionnaire Error: count(): Argument #1 ($value) must be of type Countable|array, null given
line: 11
PHP code
008 }
009 $i = loopPage(count($itemsA201));
010 question('A201', $itemsA201[$i]);
011 for ($i=0; $i<count($elements); $i++) {
012 $id = id('IV01', $i + 1);
013 put($id, $elements[$i]);
014 }
Haben Sie eine Idee, wie ich das beheben kann?