[FEATURE REQUEST] Hierarchical Mixed Reply Options

More
5 months 6 days ago - 5 months 6 days ago #195065 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:


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: 5 months 6 days ago by zenny.

Please Log in to join the conversation.

LimeSurvey Partners
More
5 months 6 days ago #195080 by Joffm
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


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: DenisChenu, zenny

Please Log in to join the conversation.

More
5 months 6 days ago #195083 by zenny

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!

Please Log in to join the conversation.

More
5 months 6 days ago #195084 by Joffm
Well, put this into your "custom.css"
.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)

File Attachment:

File Name: limesurvey...9675.lss
File Size:23 KB


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
Attachments:

Please Log in to join the conversation.

More
5 months 6 days ago - 5 months 6 days ago #195087 by Joffm
Better solution,same look & feel, but handles the resetting.

File Attachment:

File Name: limesurvey...3-07.lss
File Size:29 KB


With Denis' "skelvanilla" theme (Yeti-variation)


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 5 months 6 days ago by Joffm.
The following user(s) said Thank You: zenny

Please Log in to join the conversation.

More
5 months 5 days ago #195103 by zenny

Joffm wrote: Better solution,same look & feel, but handles the resetting.

File Attachment:

File Name: limesurvey...3-07.lss
File Size:29 KB


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

Please Log in to join the conversation.

More
5 months 5 days ago #195105 by Joffm
Then go back to the 2-level multipunch solution shown before (here with some a different validation).

File Attachment:

File Name: limesurvey...2435.lss
File Size:20 KB


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
Attachments:

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now