Check out the LimeSurvey source code on GitHub!

Disable a SubQuestion based on a Previous Answer in an Array

More
5 years 4 months ago #66971 by livingview
Hi-

I'm trying to remove a subquestion from an Array question, based on an answer from the previous question.

Example:

Q1
A1 YES
A2 NO

Q2
A1 (SHOW)
A2 (REMOVE/DISABLE)

Any help would be appreciated!
The topic has been locked.
More
5 years 4 months ago #66978 by Mazi
The only way to achieve this is to use the "array filter" question attribute: docs.limesurvey.org/Advanced+question+se...eSurvey#array_filter


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The topic has been locked.
More
5 years 4 months ago - 5 years 4 months ago #66982 by livingview
Thanks Mazi.

Sorry for not clarifying enough. I have several columns in Q1 and filtering based on ticking the first 2 columns only. (Ex. GOOD, GREAT, BEST). If ticked GOOD or GREAT, then include in Q2. If BEST, don't include.

Q1 (Array Question) [Answer Options: GOOD, GREAT, BEST]
SQ1 Red - A1 (GOOD)
SQ2 White - A2 (GREAT)
SQ3 Blue - A3 (BEST)

Q2 (Array Question) [Answer Options: MAYBE, DEFINITELY, FAVORITE]
SQ1 Red - A1 (MAYBE)
SQ2 White - A2 (FAVORITE)

Blue was eliminated from Q2 because it was BEST (not GOOD or GREAT).

Thanks.
Last Edit: 5 years 4 months ago by livingview.
The topic has been locked.
More
5 years 4 months ago #66984 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form