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!