Welcome, Guest
Username: Password: Remember me

TOPIC: Disable a SubQuestion based on a Previous Answer in an Array

Disable a SubQuestion based on a Previous Answer in an Array 2 years 9 months ago #66971

  • livingview
  • livingview's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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.

Re: Disable a SubQuestion based on a Previous Answer in an Array 2 years 9 months ago #66978

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5302
  • Thank you received: 291
  • Karma: 247
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)limesurvey.org'"
The topic has been locked.

Re: Disable a SubQuestion based on a Previous Answer in an Array 2 years 9 months ago #66982

  • livingview
  • livingview's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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: 2 years 9 months ago by livingview.
The topic has been locked.

Re: Disable a SubQuestion based on a Previous Answer in an Array 2 years 9 months ago #66984

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4072
  • Thank you received: 748
  • Karma: 341
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The topic has been locked.
Moderators: ITEd
Time to create page: 0.108 seconds
Donation Image