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

0 votes

I have used it for Mturk survey completion code. I found some codes are drawn several time.

question('RG01');  // You may as well drag the RG01 into the page (above)

// Stop right now, if no more codes are available
if (value('RG01_CP') > 0) {
  text('quotafull');
  buttonHide();
  pageStop();
}

// EITHER Prepare placeholder %code%
// and use this placeholder in some text element below the PHP code
replace('%code%', 'RG01', 'response');

// OR display the code immediately
html('<p>Your Mturk Survey Completion Codes is: <strong>'.value('RG01', 'label').'</strong>.</p>');

Thank you very much.

Best regards,

in SoSci Survey (English) by s080681 (125 points)
Tip: If you select a part of your question and then click the {} button, it will be indented and displayed as code. This makes it much easier to read.

1 Answer

0 votes

Please open the question RG01 in the list of questions. For the codes that have already been used, a 1 should be in the list right of the codes. And then they should not be used an more.

Please also make sure that Type of drawing is set to "Equally distributed" (only this one, not "Equally distributed in finished interviews"). This is the default setting for the question.

by SoSci Survey (76.3k points)
Thank you for your quick reply!!
...