- Posts: 53
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Unique Dropdowns
- PaulMRFGR
- Topic Author
- Offline
- Senior Member
Less
More
4 years 7 months 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.
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.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10098
- Thank you received: 3589
4 years 7 months ago #188629
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3964
4 years 7 months ago - 4 years 7 months ago #188630
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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"
manual.limesurvey.org/Expression_Manager...mplemented_functions
and the usage of "self"
manual.limesurvey.org/Expression_Manager....22that.22_variables
Joffm
BTW: Do you really think somebody is able to rank 26 options?
As you see in Denis' examples it is just "unique(self)"
Read the manual about "implemented functions"
manual.limesurvey.org/Expression_Manager...mplemented_functions
and the usage of "self"
manual.limesurvey.org/Expression_Manager....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: 4 years 7 months ago by Joffm.
The topic has been locked.
- PaulMRFGR
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 0
4 years 7 months 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.
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.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 7 months ago #188670
by DenisChenu
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 .
I don't answer to private message.
Replied by DenisChenu on topic Unique Dropdowns
Need javascript BUT why it's a bad solution.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.
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 .
I don't answer to private message.
The topic has been locked.