0 votes
in SoSci Survey (dt.) by s207286 (110 points)

Hi!

I created an Online Experiment, where participants are randomly sorted into groups and are presented the picture of a website as a stimulus.
Furthermore I added English as a second language. I also translated the website and uploaded new pictures for this version. But whenever I update the names of the pictures in the experiment question, it changes it for both languages. I cannot make two versions as I can do it with all the other questions.
Am I missing something?

Thanks in advance!

by SoSci Survey (309k points)
>  whenever I update the names of the pictures in the experiment question

Are you talking about the random generator or of another question?
by s207286 (110 points)
yes, the random generator

1 Answer

0 votes
by SoSci Survey (309k points)

One option is to Do the randomizaion, using some PHP code, see Randomization with PHP-Code. You would place the HTML code für the stimuli in texts, which allow for different language versions.

Another option would be to create two random generators, and display one of them, depending on the language:

if (getLanguage() == 'eng') {
    show('RG01');
} else {
    show('RG02');
}

This option has the advantage that you have an equal distribution within each language.

by s207286 (110 points)
Hi!

Thank you so much, the second option sounds great! where would I need to place the PHP code? is it in the survey, just before the randomization generator?
by SoSci Survey (309k points)
Please place the PHP code in the questionnaire instead (!) of the random generator. RG01 and RG02 would be the IDs of your two random generators.
by s207286 (110 points)
Thank you!

Somehow it does not work. The survey always displays the else option. Are there other names for the languages?
by SoSci Survey (309k points)
Add this line to check what you get:

debug(getLanguage());

Also take a look into the debug information: https://www.soscisurvey.de/help/doku.php/en:create:debugging

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

...