Welcome to the LimeSurvey Community Forum

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

Can I make a Conditional Answer Setup?

  • free521521521
  • free521521521's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 hours 16 minutes ago - 6 hours 16 minutes ago #270773 by free521521521
Can I make a Conditional Answer Setup? was created by free521521521
Please help us help you and fill where relevant:
Your LimeSurvey version: [LimeSurvey Community Edition Version 6.13.1+250428]
Own server or LimeSurvey hosting:self-host
Survey theme/template:fruit
==================
I need to set up a 3-question survey for Major Choice in university, Alll question is singal choice question.
Question 1, What is your major? Answer will be 1~9
Question 2, Will you change your major? Answer is Yes or No.
Question 3 Is the future major you will choice. But it will be partially setup base on the previously answer from Q1 and Q2.

For example, if Q1 = 7 and Q2 = No, then the Q3 will automatically set to 4.

Can I make it by LS? Thanks for help!!!
Last edit: 6 hours 16 minutes ago by free521521521.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 hours 56 minutes ago #270774 by Joffm
Replied by Joffm on topic Can I make a Conditional Answer Setup?
What's the exact workflow?
Q3 is set to 4, but then displayed that the respondent is able to change?
Or is Q3 hidden and set to 4 in the background?

Anyway: use ExpressionScript like
{Q3=if(Q1==7 and Q2=="N",4,Q3)}
with Q2 as Y/N question..

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose