- Posts: 107
- Thank you received: 4
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Hide / Disable array options based on given answer
- Matadeleo
- Topic Author
- Offline
- Premium Member
Less
More
2 years 2 months ago #225180
by Matadeleo
Hide / Disable array options based on given answer was created by Matadeleo
Your LimeSurvey version: 3.17.16+190906
Own server or LimeSurvey hosting: Self hosted
Survey theme/template: Modified bootstrap
==================
I'm using Array by Column question type, 3 sub-questions labelled rank 1, 2 & 3, and 10 answer options. (Visible in screenshot below)
I would like to hide / disable the answer options so that the answer options are effectively exclusive. For example, if I select Rank 1 - Option 1, I want to prevent users from selecting Option 1 as their 2nd or 3rd rank.
I'm purposefully avoiding using the included ranking type question in this instance due to accessibility issues.
Own server or LimeSurvey hosting: Self hosted
Survey theme/template: Modified bootstrap
==================
I'm using Array by Column question type, 3 sub-questions labelled rank 1, 2 & 3, and 10 answer options. (Visible in screenshot below)
I would like to hide / disable the answer options so that the answer options are effectively exclusive. For example, if I select Rank 1 - Option 1, I want to prevent users from selecting Option 1 as their 2nd or 3rd rank.
I'm purposefully avoiding using the included ranking type question in this instance due to accessibility issues.
Please Log in to join the conversation.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 965
- Thank you received: 218
2 years 2 months ago - 2 years 2 months ago #225181
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic Hide / Disable array options based on given answer
Deleted, wrong answer
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Last edit: 2 years 2 months ago by tammo.
Please Log in to join the conversation.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 965
- Thank you received: 218
2 years 2 months ago - 2 years 2 months ago #225182
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic Hide / Disable array options based on given answer
Sorry, wrong direction. There is more to this...
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Last edit: 2 years 2 months ago by tammo.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12888
- Thank you received: 3965
2 years 2 months ago #225187
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Hide / Disable array options based on given answer
It's the wrong question type.
Use "array" and validate with "unique(self)"
Here some more alternatives
[url] demonstration.sondages.pro/index.php/714997?lang=fr# [/url]
Joffm
Use "array" and validate with "unique(self)"
Here some more alternatives
[url] demonstration.sondages.pro/index.php/714997?lang=fr# [/url]
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- Matadeleo
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 107
- Thank you received: 4
2 years 2 months ago - 2 years 2 months ago #225188
by Matadeleo
Replied by Matadeleo on topic Hide / Disable array options based on given answer
Hi Joffm, thanks for the reply -
This obviously is a working solution but in this case I think it would be much more friendly to respondents with accessibility issues to hide the options that are not "allowed".
For example a blind respondent may not have the visual reminder of which answers he has previously ranked and may get caught in a feedback loop. He may also miss visual clues as to how the question must be completed. In this case it would work much easier if his screen reader would not see the option to begin with.
This obviously is a working solution but in this case I think it would be much more friendly to respondents with accessibility issues to hide the options that are not "allowed".
For example a blind respondent may not have the visual reminder of which answers he has previously ranked and may get caught in a feedback loop. He may also miss visual clues as to how the question must be completed. In this case it would work much easier if his screen reader would not see the option to begin with.
Last edit: 2 years 2 months ago by Matadeleo.
The following user(s) said Thank You: DenisChenu
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
2 years 2 months ago #225190
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Hide / Disable array options based on given answer
Denis from SondagePro has a few examples of alternative ranking questions.
demo.sondages.pro/index.php/
However, clicking on the button for "A lot of alternate ranking questions" gives an error to me.
demo.sondages.pro/index.php/
However, clicking on the button for "A lot of alternate ranking questions" gives an error to me.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
2 years 2 months ago #225191
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Hide / Disable array options based on given answer
This link seems to work:
demonstration.sondages.pro/714997#
The explanation on how it is done is with each example within the survey.
demonstration.sondages.pro/714997#
The explanation on how it is done is with each example within the survey.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
2 years 2 months ago #225192
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Hide / Disable array options based on given answer
Doesn't solve the problem with the screen reader though.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12888
- Thank you received: 3965
2 years 2 months ago #225196
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Hide / Disable array options based on given answer
How do you let a respondent set option 1 on 2nd rank, and option 2 on 1st rank in your screenshot?
You have to set both option to a very different rank and then back to the desired. Very complicated.
Joffm
Regarding the link:
I don't see an issue here.
You have to set both option to a very different rank and then back to the desired. Very complicated.
Joffm
Regarding the link:
I don't see an issue here.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
2 years 2 months ago - 2 years 2 months ago #225197
by holch
The one I posted always worked. The other one was fixed by Denis very quickly, after I told him via Discord. [/quote]
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Hide / Disable array options based on given answer
Regarding the link:
I don't see an issue here.
The one I posted always worked. The other one was fixed by Denis very quickly, after I told him via Discord. [/quote]
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Last edit: 2 years 2 months ago by holch.
Please Log in to join the conversation.
- Matadeleo
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 107
- Thank you received: 4
2 years 2 months ago #225199
by Matadeleo
Replied by Matadeleo on topic Hide / Disable array options based on given answer
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
2 years 2 months ago #225228
by DenisChenu
With SkelVanilla , then aria-describedby for the error.
I think the 3rd option is the best for a11y ? unsure.
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 Hide / Disable array options based on given answer
The same survey : demo.sondages.pro/714997#Denis from SondagePro has a few examples of alternative ranking questions.
demo.sondages.pro/index.php/
However, clicking on the button for "A lot of alternate ranking questions" gives an error to me.
With SkelVanilla , then aria-describedby for the error.
I think the 3rd option is the best for a11y ? unsure.
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.