Welcome to the LimeSurvey Community Forum

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

Conditionals on 5 questions. case YES Then, case NO then.

  • MonjeMiroku
  • MonjeMiroku's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #194599 by MonjeMiroku
I have a group of questions and within that group of questions I have 5, I need help to do that at the end of those 5 questions and with the conditional that the 5 are not, it is not necessary to continue answering the survey, but in case Any question, yes, continue with the survey.

The detail is that I have only achieved that by positioning myself in question 5 I can put conditional on previous questions, but .. avoiding question number 5, is this correct?

I hope your help, have a good day. :)
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #194602 by Joffm
Hi,
after your 5 questions create a question of type equation.
I assume the type of these 5 questions is "Yes/No".
Here you set something like:
{sum(if(t1=="Y",1,0),if(t2=="Y",1,0),if(t3=="Y",1,0),if(t4=="Y",1,0),if(t5=="Y",1,0))}
To understand read the manual about implemented functions:
manual.limesurvey.org/Expression_Manager#Implemented_Functions
and Expression Manager in general:
manual.limesurvey.org/Expression_Manager
By the way: This is called Expression script in version 4.x.

Well, you see, if all five questions were not answered "Yes" the sum is still "0".
Now you create a quota with limit "0" on this equation, so people with a value of "0" are screened out.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose