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
  • Matadeleo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 2 months ago #225180 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.
 

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
2 years 2 months ago - 2 years 2 months ago #225181 by tammo
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
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
2 years 2 months ago - 2 years 2 months ago #225182 by tammo
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
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #225187 by Joffm
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • Matadeleo
  • Matadeleo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 2 months ago - 2 years 2 months ago #225188 by Matadeleo
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.
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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #225190 by holch
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.

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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #225191 by holch
This link seems to work:

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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #225192 by holch
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
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #225196 by Joffm
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.


 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago - 2 years 2 months ago #225197 by holch

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
  • Matadeleo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 2 months ago #225199 by Matadeleo
Thanks guys - I think in this case I will go with the validation option on the linked site and investigate a more complex solution at another time! Having thought about it, I can see potential issues with accessibility with my suggestion also 

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 2 months ago #225228 by DenisChenu

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.
 
The same survey : demo.sondages.pro/714997#
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.

Lime-years ahead

Online-surveys for every purse and purpose