Good morning :) I couldn't generate an Mturk code, I tried several possibilities I found on the web, but nothing works (the code doesn't work for some reason). I tried to create a new section for "random generator", I put the following code in the question contents, but it doesn't work. I've also dragged the PHP code in the survey page, but the code is apparently not correct. Can you please help?
// Stop right now, if no more codes are available
if (value('RG01_CP') > 0) {
text('quotafull');
buttonHide();
pageStop();
}
// Prepare placeholder %code%
// and use this placeholder in some text element below the PHP code
replace('%code%', 'RG01', 'response');
html('<p>YOUR UNIQUE SURVEY COMPLETION CODE FOR MTURK IS <strong>'.value('RG01', 'label').'</strong>.</p>');
Thank you for your participation in this study! YOUR UNIQUE SURVEY COMPLETION CODE FOR MTURK IS %code%