- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple choice based conditional question groups: problem with defaults
- phylll
- Topic Author
- Offline
- New Member
==================
Dear experts,
The closest I was able to find in the forums is this 3-years-old thread with very useful input by Joffm: forums.limesurvey.org/forum/can-i-do-thi...ltiple-choice#209614
Basically, I've built a survey that first asks a multiple choice question with checkmarks (completely open, respondents can select between zero options and every available option) and then they get shown one question group per selected option, or none at all if they selected no options at all. Works fine.
As an additional feature, I've added respondent-specific defaults to the multiple choice question. So, the participant table holds extra information in attributes, and based on those attributes, some of the checkmarked subquestions in the multiple choice question "rcptSlctr" get automatically checked by default. Works fine, as well.
I've built this as a "survey template" not in the LimeSurvey sense but as an incomplete survey that I export as an LSS file, modify through a Python script to generate all these repetitive question groups that would be tedious and error-prone to build per hand every time, and reimport the new LSS into LimeSurvey. Again, works fine in most ways, and LimeSurvey's logic checks run fine.
Except that now, *deselecting* some of these defaults gets ignored *most of the time*. I am able to select additional question groups in my initial multiple choice question, and deselect others that were defaults, but then I still usually get a selection of question groups to answer that tends to include all the choices I tampered with, but not all (so the group relevance checks/conditions do work wherever I had not touched the checkboxes on the multiple choice question page).
Is this sufficiently clear or should I make screenshots? I've attached the LSS file I'm using. The problem tends to appear more often, if not only (no longer sure after lots of testing) for slightly larger number of choices and question groups than those 3. In my "production version", I have 23 entries/question groups, and there is happens all the time. If necessary, I can create an anonymized LSS with 23 entries, but I wanted to first give it a try and see if there is some obvious mistake I've made. (It's an internal staff feedback tool in my organization, so I need to anonymize everything before I post the LSS.)
Thank you very much for your support!
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10109
- Thank you received: 3595
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- phylll
- Topic Author
- Offline
- New Member
- Posts: 4
- Thank you received: 0
By the way, is there a way to avoid that with the editor? Does using the source code editor help or does LimeSurvey add extra HTML afterwards?
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10109
- Thank you received: 3595
LimeSurvey adds nothing, it is a "feature" of the editor. I suggest setting your editor preferences to "Popup".By the way, is there a way to avoid that with the editor? Does using the source code editor help or does LimeSurvey add extra HTML afterwards?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- phylll
- Topic Author
- Offline
- New Member
- Posts: 4
- Thank you received: 0
Does anyone have any idea that might help me? See original post for more details and my LSS file.Except that now, *deselecting* some of these defaults gets ignored *most of the time*. I am able to select additional question groups in my initial multiple choice question, and deselect others that were defaults, but then I still usually get a selection of question groups to answer that tends to include all the choices I tampered with, but not all (so the group relevance checks/conditions do work wherever I had not touched the checkboxes on the multiple choice question page).
Many thanks for your time!
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13648
- Thank you received: 2491
If you want to use an equation to set default on multiple choice: you must use another equation.
1. EQste : {MULTI_SQ1=if(is_empty(EQcheck.NAOK),"Y",MULTI_SQ1.NAOK=
2. EQcheck : 1
Better to use Equation advanced settings for this.
The no issue with HTML editor. It's done for this.
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.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12940
- Thank you received: 3979
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- phylll
- Topic Author
- Offline
- New Member
- Posts: 4
- Thank you received: 0
Please Log in to join the conversation.