Unique Dropdowns

More
1 month 1 week ago #188627 by PaulMRFGR
Unique Dropdowns was created by PaulMRFGR
Hi all,

Wondered if this would be possible.

We have a very big ranking question (with 26 options), and due to the size it just doesn't look great on mobile devices. Considering this, we're looking to do dropdowns instead (where users select the ranking from a dropdown next to each option).

However is there a way to limit the choices so that each ranking is unique? As an example, to stop people who select rank, "1" for option A, also selecting rank "1" for option B?


Thank you.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #188629 by tpartner
Replied by tpartner on topic Unique Dropdowns
Denis has published some alternate ranking questions here - demonstration.sondages.pro/714997#

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #188630 by Joffm
Replied by Joffm on topic Unique Dropdowns
I suppose you are going to use an array (numbers).
As you see in Denis' examples it is just "unique(self)"

Read the manual about "implemented functions"
https://manual.limesurvey.org/Expression_Manager_-_presentation#Implemented_functions

and the usage of "self"
https://manual.limesurvey.org/Expression_Manager_-_presentation#The_reserved_.22this.22.2C_.22self.22.2C_and_.22that.22_variables






Joffm


BTW: Do you really think somebody is able to rank 26 options?


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 1 month 1 week ago by Joffm.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #188658 by PaulMRFGR
Replied by PaulMRFGR on topic Unique Dropdowns
Hi all, thanks for your help here. Really appreciated. Worked like a charm.

Is there a further way to make options disappear from the dropdowns in further answers once selected? E.G. once they select, "1" for option A, "1" doesn't appear as a choice for Option B, C, D, etc?

Thank you.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #188670 by DenisChenu
Replied by DenisChenu on topic Unique Dropdowns

PaulMRFGR wrote: Hi all, thanks for your help here. Really appreciated. Worked like a charm.

Is there a further way to make options disappear from the dropdowns in further answers once selected? E.G. once they select, "1" for option A, "1" doesn't appear as a choice for Option B, C, D, etc?

Thank you.

Need javascript BUT why it's a bad solution.
I chek 1 in 1st dropdown
I review and want to check 1 on second dropdown … i click search 1, don't found it …

If js is good : i have to unselect 1 in 1st, and select 1 in 2 after…

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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!