Welcome to the LimeSurvey Community Forum

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

Help with a workaround for Multiple choice question filtering

  • slarson55
  • slarson55's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 days ago - 4 years 5 days ago #197583 by slarson55
Hello,

I had an issue where a bug prevented me from filtering questions not yet answered. Basically, what I originally had set up for filters:

Q1: Flavors for person 1:
Vanilla
Pistachio
Chocolate
Milky Way
Moose Tracks
Filter Exclusion: Q2;Q3

Flavors for person 2:
Vanilla
Pistachio
Chocolate
Milky Way
Moose Tracks
Filter Exclusion: Q1;Q3


Flavors for person 3:
Vanilla
Pistachio
Chocolate
Milky Way
Moose Tracks
Filter Exclusion: Q2;Q1

However this seems to cause answers to not save if it has filters for questions below it. I want the user if by the time I ask person 3 what ice cream they want, for person 1 to be able to change their minds after but not be able to pick person 3's Moose Tracks. These filters could probably be done in javascript, but I am having trouble finding examples. I am attaching a working example that shows that once you go to page 2, and go back to page 1 the answers are gone. It definitely should be a bug, but for now if anyone could help with javascript that would be amazing
Last edit: 4 years 5 days ago by slarson55.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #197590 by DenisChenu
My opinion : best is to use manual.limesurvey.org/Question_type_-_Mu...28em_validation_q.29


But maybe you can try with expression inside subquestion relevance : manual.limesurvey.org/Adding_answers_or_...fic_for_subquestions

Else : did you report the issue ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: slarson55
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #197593 by Joffm
Isn't this related to
www.limesurvey.org/forum/design-issues/1...ot-staying-filled-in

where you also use filters of questions which are following?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • slarson55
  • slarson55's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 days ago #197601 by slarson55
It is indeed. I was looking for a workaround temporarily in .js and figured it should go here.
The topic has been locked.
  • slarson55
  • slarson55's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 days ago #197611 by slarson55
To answer denis:

My opinion : best is to use manual.limesurvey.org/Question_type_-_Mu...28em_validation_q.29


But maybe you can try with expression inside subquestion relevance : manual.limesurvey.org/Adding_answers_or_...fic_for_subquestions


Option 1: I have checkboxes, and was hoping that for usability the boxes could disappear as options if selected elsewhere.

Option 2: This worked actually. I moved equations to subquestion relevance and was able to work around with no js
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 days ago #197617 by DenisChenu

slarson55 wrote: Option 2: This worked actually. I moved equations to subquestion relevance and was able to work around with no js

Exactmly the same equation than the "filter" équation ? If yes : it can be really interesting to fix the issue.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: slarson55
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose