0 votes
in SoSci Survey (dt.) by s113974 (110 points)

Es soll randomisiert werden, wann welches Bild auf der einen oder der anderen Seite angezeigt wird.

1 Answer

0 votes
by SoSci Survey (304k points)

Sie können im question()-Befehl den Parameter direction verwenden. Wenn Sie also z.B. mit einem Zufallsgenerator arbeiten, könnte der PHP-Code wie folgt aussehen.

$code = value('RG01');
if ($code == 1) {
  question('AB01', 'direction=up');
} else {
  question('AB01', 'direction=down');
}

Diese Lösung hat den Vorteil, dass die Kodierung der Antworten unabhängig von der Darstellung bleibt.

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

...