0 votes
in SoSci Survey (dt.) by s224311 (160 points)

Dear reader,

in my survey I use casenumber() in order to display individual numbers to the participants which they need to access the then following experiment:


Durch folgenden Code erhalten Sie Zugang zur Plattform: %caseNumber%

Do you know if there is any possbility to specify the number displayed to the participants? currently it gives single digits. For our platform 4-digits are necessary. Also, only the last 3 out of 4 digits need to be "counted, the first one needs to be a "1".

Thanks in advance!

related to an answer for: Individualizing access code

1 Answer

0 votes
by SoSci Survey (297k points)

The number is simple the CASE number from your dataset. This will count up with each respondent. You can format it with sprintf(), adding leading zeros, e.g.

html('<p>Das ist die Nummer, die Sie brauchen: '.sprintf('%04d', caseNumber()).'</p>');

If you prefer other codes (especially codes that one cannot simply guess), please use one of the other options specified in the previous answer.

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