Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

get code and asnwer from the previous question.

  • marcomarenco
  • marcomarenco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 4 months ago #156612 by marcomarenco
Hi,
i've a survey with random question, i would check the answer from the previous question, something like:
A0=(if((A0.NAOK == "nessuna_risposta"), "", strtoupper(A0.NAOK)))

in the survey i've e.g.:

the original sequence is:
1) A0
2)A0FB
3)A1
4)A1FB

A0= what is you name?
in A0FB;
Your name is: A0=(if((A0.NAOK == "no_answer"), "", strtoupper(A0.NAOK)))

A1= what's your mom's name?
A1FB= Your mom's name is: (if((A1.NAOK == "no_answer"), "", strtoupper(A1.NAOK)))

if the question A0 and A1 are random, i'm not able to check the answer, is there some command to get the previous question code and text?

something to use in general, e.g.:
PREVIOUS=(if((PREVIOUS.NAOK == "nessuna_risposta"), "", strtoupper(PREVIOUS.NAOK)))

thanks in advance,
Marco
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose