- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
[FEATURE REQUEST] Hierarchical Mixed Reply Options
- zenny
- Topic Author
- Offline
- New Member
Less
More
4 years 1 month ago - 4 years 1 month ago #195065
by zenny
[FEATURE REQUEST] Hierarchical Mixed Reply Options was created by zenny
Hi,
A hierarchical mixed (checkbox underneath radio buttons) reply option where a respondent is allowed to choose between different descriptive options only under his/her response of choice, not vice versa. An example:
In the case above, the respondent is only allowed to select the checkboxes under either 'Yes' or 'No' checkboxes, but not all checkboxes.
Thanks, and cheers,
/z
Reference: www.limesurvey.org/forum/can-i-do-this-w...estions-and-security
A hierarchical mixed (checkbox underneath radio buttons) reply option where a respondent is allowed to choose between different descriptive options only under his/her response of choice, not vice versa. An example:
QUESTION: LimeSurvey is a USEFUL tool:
ANSWERS::
(radio button) YES because (check all that apply):
(checkbox1) It can be SELF-HOSTED.
(checkbox2) It is OPEN SOURCED.
(checkbox3) It is SUPERIOR to alternatives
(radio button) NO because (check all that apply):
(checkbox4) It has STEEP LEARNING CURVE.
(checkbox5) It requires PROGRAMMING KNOWLEDGE.
(checkbox6) It lacks FEATURES I need.
In the case above, the respondent is only allowed to select the checkboxes under either 'Yes' or 'No' checkboxes, but not all checkboxes.
Thanks, and cheers,
/z
Reference: www.limesurvey.org/forum/can-i-do-this-w...estions-and-security
Last edit: 4 years 1 month ago by zenny.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12932
- Thank you received: 3978
4 years 1 month ago #195080
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic [FEATURE REQUEST] Hierarchical Mixed Reply Options
I'd say:
This can be achieved by built-in features with a little bit of css.
Here a very quick example with improvable css.
Joffm
This can be achieved by built-in features with a little bit of css.
Here a very quick example with improvable css.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: DenisChenu, zenny
The topic has been locked.
- zenny
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
4 years 1 month ago #195083
by zenny
@Joffm: The latter looks promising! Danke vielen for your inputs.
Would you mind sharing the CSS part you changed, subject to your consent.
Danke Schön, Herr Joffm!
Replied by zenny on topic [FEATURE REQUEST] Hierarchical Mixed Reply Options
Joffm wrote: I'd say:
This can be achieved by built-in features with a little bit of css.
Here a very quick example with improvable css.
Joffm
@Joffm: The latter looks promising! Danke vielen for your inputs.
Would you mind sharing the CSS part you changed, subject to your consent.
Danke Schön, Herr Joffm!
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12932
- Thank you received: 3978
4 years 1 month ago #195084
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic [FEATURE REQUEST] Hierarchical Mixed Reply Options
Well, put this into your "custom.css"
Maybe you have to add some styles (depends on your used theme - this is an extended vanilla)
Remember:
In case a respondents selects "Yes" and some reasons, but changes his mind and selects "No",
you have to set back the multipunch part, either by an equation afterwards or by javascript.
Unfortunately I am not able to do the javascript part, so I'd use an equation, like
{Q1a_SQ001=if(Q1==2,"",Q1a_SQ001)}
{Q1a_SQ002=if(Q1==2,"",Q1a_SQ002)}
...
{Q1a_SQ004=if(Q1==1,"",Q1a_SQ004)}
...
Code:
.no-question{border-top:0;} .no-question .question-title-container{display:none;} .no-question .question-valid-container{display:none;} .no-question .answer-container { padding-top: 0em; padding-bottom: 0.5em; } .no-bottom{border-bottom:0;margin-bottom:0;} .no-bottom .answer-container { padding-bottom: 0em; }
Maybe you have to add some styles (depends on your used theme - this is an extended vanilla)
Remember:
In case a respondents selects "Yes" and some reasons, but changes his mind and selects "No",
you have to set back the multipunch part, either by an equation afterwards or by javascript.
Unfortunately I am not able to do the javascript part, so I'd use an equation, like
{Q1a_SQ001=if(Q1==2,"",Q1a_SQ001)}
{Q1a_SQ002=if(Q1==2,"",Q1a_SQ002)}
...
{Q1a_SQ004=if(Q1==1,"",Q1a_SQ004)}
...
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12932
- Thank you received: 3978
4 years 1 month ago - 4 years 1 month ago #195087
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic [FEATURE REQUEST] Hierarchical Mixed Reply Options
Better solution,same look & feel, but handles the resetting.
With Denis' "skelvanilla" theme (Yeti-variation)
With Denis' "skelvanilla" theme (Yeti-variation)
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 1 month ago by Joffm.
The following user(s) said Thank You: zenny
The topic has been locked.
- zenny
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
4 years 1 month ago #195103
by zenny
Danke vielen, Herr @Joffm. It looked very nice. SO nice of you!
It would look more efficient if the sub-options in checkboxes appear persistently under the relevant radio button instead of when only the sub-options of the chosen radio button (in this case Yes/No). I meant not in drop-down mode, rather all the sub-checkboxes to both of the radio options are displayed persistently.
Cheers,
/z
Replied by zenny on topic [FEATURE REQUEST] Hierarchical Mixed Reply Options
Joffm wrote: Better solution,same look & feel, but handles the resetting.
With Denis' "skelvanilla" theme (Yeti-variation)
Danke vielen, Herr @Joffm. It looked very nice. SO nice of you!
It would look more efficient if the sub-options in checkboxes appear persistently under the relevant radio button instead of when only the sub-options of the chosen radio button (in this case Yes/No). I meant not in drop-down mode, rather all the sub-checkboxes to both of the radio options are displayed persistently.
Cheers,
/z
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12932
- Thank you received: 3978
4 years 1 month ago #195105
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic [FEATURE REQUEST] Hierarchical Mixed Reply Options
Then go back to the 2-level multipunch solution shown before (here with some a different validation).
Joffm
In my opinion this approach (all on one page) is not the very best.
Why:
If I had to answer the questionnaire I'd go through the answer options of the checkboxes and THEN I'd decide whether I select "Yes" or "No".
Therefore I always prefer a clear two step approach: "Yes/No" and on the next page the reasons for this decision.
But of course: Up to you.
Joffm
In my opinion this approach (all on one page) is not the very best.
Why:
If I had to answer the questionnaire I'd go through the answer options of the checkboxes and THEN I'd decide whether I select "Yes" or "No".
Therefore I always prefer a clear two step approach: "Yes/No" and on the next page the reasons for this decision.
But of course: Up to you.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.