- Posts: 13
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
4 years 5 days ago - 4 years 5 days ago #197583
by slarson55
Help with a workaround for Multiple choice question filtering was created 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
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
Attachments:
Last edit: 4 years 5 days ago by slarson55.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
4 years 5 days ago #197590
by DenisChenu
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.
Replied by DenisChenu on topic Help with a workaround for Multiple choice question filtering
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 ?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
4 years 5 days ago #197593
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Help with a workaround for Multiple choice question filtering
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
4 years 5 days ago #197601
by slarson55
Replied by slarson55 on topic Help with a workaround for Multiple choice question filtering
It is indeed. I was looking for a workaround temporarily in .js and figured it should go here.
The topic has been locked.
- slarson55
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
4 years 5 days ago #197611
by slarson55
Replied by slarson55 on topic Help with a workaround for Multiple choice question filtering
To answer denis:
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
4 years 4 days ago #197617
by DenisChenu
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.
Replied by DenisChenu on topic Help with a workaround for Multiple choice question filtering
Exactmly the same equation than the "filter" équation ? If yes : it can be really interesting to fix the issue.slarson55 wrote: Option 2: This worked actually. I moved equations to subquestion relevance and was able to work around with no js
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.