+1 vote
in SoSci Survey (English) by s057462 (330 points)

In our questionnaire we are trying to display a voucher code at the end, to reward participants for completion. This code is unique for each participant (only drawn once). There are 200 independent codes and these have been inputted into a "Random Generator" style question. This does seem to successfully randomly allocate a code to each participant (shown in the "Drawn yet" section), however they are not displayed in the questionnaire to the participant.
How do we get our randomly generated codes to be displayed to the participant, so they can make a note of their unique voucher code?
Thanks in advance.

by s109993 (9.9k points)
Some sample code would be nice, otherwise it is just possible to guess what went wrong. Anyhow, here are some ways to display the "Random Generator" in the Survey:

https://www.soscisurvey.de/help/doku.php/en:create:questions:random

1 Answer

0 votes
by SoSci Survey (304k points)

they are not displayed in the questionnaire to the participant.

Simply put them into a placeholder and/or display them via html().

Unfortunately, the corresponding manuel chapter has not yet been translated, but you can see the PHP code examples here: Individuelle Codes oder Gutschein-Codes anzeigen

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

...