0 votes
in SoSci Survey (English) by s029671 (120 points)

Hello,

I created two questionnaires in two different languages. I would like to select randomly one of the two questionnaires. I followed the instructions presented on the following page:

https://www.soscisurvey.de/help/doku.php/en:create:random_questionnaire

I inserted the PhP code:

$qnr = value('RF01', 'label');
goToQuestionnaire($qnr);

And created a new question of the type Random generator including both questionnaires as codes.

The problem is the following: The randomizer survey would always select the language version of the survey that corresponds to the language setting of the randomizer. For example, if the setting of the randomizer is language A, it would always present the survey in language A (although I included both language versions in the code).

Could you please help me with this issue?

Many thanks!

1 Answer

0 votes
by SoSci Survey (302k points)

I created two questionnaires in two different languages. I would like to select randomly one of the two questionnaires.

In my opinion, if it is the same questionnaire in both cases, it was a better idea to use the multilanguage feature and then use the function setLanguage() to select the (randomly chosen) language.

The problem is the following: The randomizer survey would always select the language version of the survey that corresponds to the language setting of the randomizer.

Are you already using a multi-language questionnaire? Then my recommendation is even more important. However, you may consider skipping the randomizer questionnaire (I assume this is what you mean with "randomizer") and just use the setLanguage().

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

...