Welcome to the LimeSurvey Community Forum

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

Pre-fill or set default answer to List Radio question based on previous answer

  • gabrielsmith
  • gabrielsmith's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #156954 by gabrielsmith
Here's what I need to do:
If someone selects q1_A1, then q2_A1 will be selected. q2 is a hidden question on the next page. Both are List Radio questions.

I've looked at other forum replies, tried multiple expressions, and read all the documentation but can't seem to figure out how to do this.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 8 months ago #156958 by DenisChenu
Equation question type just after q1

{q2=(if(q1=="A1","A1","")}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: gabrielsmith
The topic has been locked.
  • gabrielsmith
  • gabrielsmith's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #156964 by gabrielsmith
THANK YOU! That worked for the List Radio, but what if q1 is a Multiple Choice type question? In this case:
If the first checkbox of q1 is selected (regardless of whether any of the other checkboxes are selected or not), the first option of the List Radio question will be selected. I tried the same equation but it doesn't work...
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 8 months ago #156982 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: gabrielsmith
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose