Help with a workaround for Multiple choice question filtering

More
2 months 2 weeks ago - 2 months 2 weeks 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
Attachments:
Last edit: 2 months 2 weeks ago by slarson55.

Please Log in to join the conversation.

LimeSurvey Partners
More
2 months 2 weeks 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

Please Log in to join the conversation.

More
2 months 2 weeks ago #197593 by Joffm
Isn't this related to
https://www.limesurvey.org/forum/design-issues/120913-multiple-choice-checkboxes-not-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

Please Log in to join the conversation.

More
2 months 2 weeks ago #197601 by slarson55
It is indeed. I was looking for a workaround temporarily in .js and figured it should go here.

Please Log in to join the conversation.

More
2 months 2 weeks 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

Please Log in to join the conversation.

More
2 months 2 weeks 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

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now