Page 1 of 1

Capture name from another variable

Posted: July 12th, 2018, 6:21 am
by Socio
Dear all

I would like to know how to capture a varible input from previous variable input.
eg.
Q1: Name of Respondent : XYZ
Q5: Name of Respondent: I want to bring the name XYZ automitically.

Thannk you

Re: Capture name from another variable

Posted: July 14th, 2018, 4:30 am
by blumski
In the logic of the first variable (Q1), write this :
Postproc
Q5=Q1;

When you reach Q5, the value entered in Q1 will appear.

You can also write the code in the logic of the variable receiving the value (Q5). In this case, you can write this :
Preproc
Q5=Q1;
noinput;

Noinput command can be added in the logic of Q5 to avoid modifying the value entered in Q1.
Important : make sure that the two varia