0 votes
ago in SoSci Survey (English) by s262677 (110 points)
edited ago by SoSci Survey

I would like to give my participants a keyword which depends on the group that they are in.

In the first questionnaire, I assign participants to a group via randomizer and save the group assignment into a custom variable called group using the registerVariable() function. In the second quesionnaire I want to present the keyword which is a text in variables RG02 or RG03. The code is

if (value('group') == 1) {
    text('RG02');
} else {
    text('RG03');
}

Thetwo questionnaires that are connected via a serial mail.

However, when trying to access the variable group in the second questionnaire in the debug modus, the text of RG02 shows but I also receive the following error message:

"The variable groupe does not exist in this project (see variable overview). Therefore, no response value can be retrieved."

Has anybody a solution for this or maybe an easier way to solve my issue with the keyword?

Thank you very much for your support!

1 Answer

0 votes
ago by SoSci Survey (341k points)

Thetwo questionnaires that are connected via a serial mail.

Okay, then you'll have to use the database to transfer the information from case A to case B. Please follow this manual: Exchange Data Between Two Questionnaires

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

...