0 votes
in SoSci Survey (English) by s289490 (125 points)

i

I'm trying to randomize the two scenarios that i created. 50% of the respondents should receive both the scenario 1 and 2 and the rest of them scenario 2. After following the manual and entering the PHP code, this is shown. How do I fix this?

by s109993 (11.4k points)
try to write your php function not in the field "PHP for Processing Responses", but in an normal php field. you find it on the right side next to the html element. just drag and drop it in your questionnaire and add your code.

1 Answer

0 votes
by SoSci Survey (320k points)
selected by s289490
 
Best answer

try to write your php function not in the field "PHP for Processing Responses"

Absolutely the right answer.

The "PHP for Processing Responses" is a beta feature to make response processing easier. It does not run the "normal" PHP code that you need for page creation.

by s289490 (125 points)
Thank You. It works

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

...