0 votes
in SoSci Survey (English) by s075828 (290 points)

Hallo,

I created a Random Generator A103 with same keys as before in A101

1 = EmployeeInfoDeck 1
2 = EmployeeInfoDeck 2
3 = EmployeeInfoDeck 3
4 = EmployeeInfoDeck 4

Now when i use $deck = value('A103');

after the questionnaire ends, i see the Drawn Yet box still shows

1: 0
2: 0
3: 0
4: 0

Could you please let me know why this discrepancy is happening ?

I also created a new PHP code as i created 10 separate questions. Below is the code.

pic
Thanks

by s075828 (290 points)
Sorry this is the code:

$deck = value('A103');
$i = loopPage(10);
html('<p>'.$deck.'</p>');
$textID = 'EmployeeInfo'.$deck.sprintf('%03d', $i + 1);
$qID = 'A1'.sprintf('%02d', $i + 4);
// Display question and text - like before
$data = dbGet($textID);
$text = $data[0];
html('<p>'.$text.'</p>');
question($qID);

1 Answer

0 votes
by SoSci Survey (327k points)

Please check that "Type of drawing" is set to one of the "Equally distributed" options. If you have chosen "Equally distributed in finished interviews", please make sure that you reach the "last page" to have a count in the random generator.

Please note, that drawings will not be counted in debugging/preview mode (see variable MODE in teh interview), if the survey is already online (=survey administration period has begun).

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

...