Welcome to the LimeSurvey Community Forum

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

Conditionally continue survey

  • klifer
  • klifer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #117280 by klifer
Conditionally continue survey was created by klifer
Hey!

I'm a bit lost about conditionally actions based on answer for survey question. I have two question groups Q1 and Q2. The last question in both groups has 'yes/no' radio choice. 'Yes' answer in Q1 should direct to the first question in Q2 and continue survey. 'No' answer should close the survey. How to do it?

Big thanks in advance ...
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #117282 by tpartner
Replied by tpartner on topic Conditionally continue survey
Please refer to the manual - quotas.

(you can set a quota to 0)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #117283 by holch
Replied by holch on topic Conditionally continue survey
You can use quotas for this, if you have some kind of "screen out" process, just like Tpartner said.

But in your case you can also use conditions or expressions to hide the second question group if the last question in group Q1 mas marked as "no".

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • klifer
  • klifer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #117284 by klifer
Replied by klifer on topic Conditionally continue survey
Thank you Tony but Im afraid it's not about quotas and limits. I just want continue survey (jump to the next question group) whenever the answer is 'YES' or close the survey if it's 'No'.

thx
Klifer
The topic has been locked.
  • fransmarcelissen
  • fransmarcelissen's Avatar
  • Offline
  • Premium Member
  • Premium Member
More
9 years 1 month ago #117285 by fransmarcelissen
Replied by fransmarcelissen on topic Conditionally continue survey
As holch writes: set a condition to each answer group you want to skip (in your case: to all groups after the selection question).
Frans
The following user(s) said Thank You: klifer
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago - 9 years 1 month ago #117286 by holch
Replied by holch on topic Conditionally continue survey
They way you described it in the first place, a zero quota would do what you wanted. However, if there is a third question group, then you will definitely need to create conditions/expressions based on the yes/no question.

As you want to hide the whole group, then the best approach is to write an expression for the group, e.g. assuming that the question code of the yes/no question is g1c and the answer yes codes as 1 this needs to be put into the field "Relevance equation" for the respective group that should be shown or hidden:
Code:
g1c == 1

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 9 years 1 month ago by holch.
The following user(s) said Thank You: DenisChenu, klifer
The topic has been locked.
  • klifer
  • klifer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #117289 by klifer
Replied by klifer on topic Conditionally continue survey
OK, I think the second method is closer .. ;) So, I do as below but still doesn't work ..

Question Group A

QuestionA1 - some text question
QuestionA2 - YES/NO

Question Group B --> Relevance equation A2==1

QuestionB1 - some text question
QuestionB2 - YES/NO

Question Group C --> Relevance equation B2==1

QuestionC1 - some text question
QuestionC2 - YES/NO
The topic has been locked.
  • klifer
  • klifer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #117290 by klifer
Replied by klifer on topic Conditionally continue survey
OK, works with A2=='Y'

Thank you! ;)
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #117292 by holch
Replied by holch on topic Conditionally continue survey
Well, my version only would work if the answer code for "yes" is set to "1" (see my assumptions). If you have set any other answer code for "yes", then you need to use this answer code.

In your case, if you have set the answer code for "yes" to "Y", then of course the relevance equation needs to be A2=='Y'.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago - 9 years 1 month ago #117313 by tpartner
Replied by tpartner on topic Conditionally continue survey

In your case, if you have set the answer code for "yes" to "Y"...

I think klifer probably used a Yes-No question which has fixed answer codes "Y" and "N".

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 9 years 1 month ago by tpartner.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #117320 by holch
Replied by holch on topic Conditionally continue survey
I didn't think of that question type. I never use those predefined ones. Even if I need a yes/no question I would create a normal single choice question with answer options yes and now.

I only tought about the multiple choice questions, where the "Y" is standard, but not about the yes/no question (just doesn't exist in my head - filtered out).

Thanks for reminding!

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • klifer
  • klifer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #117326 by klifer
Replied by klifer on topic Conditionally continue survey
Yes, that's right.

Cheers,
Klifer
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose