Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Radio button array used for ranking

  • tosa2021
  • tosa2021's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #225412 by tosa2021
Radio button array used for ranking was created by tosa2021
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 3.27.18+210921
Own server or LimeSurvey hosting: Working with an enterprise installation.

==================
Hi,

I would like to use the 10 point choice array to allow respondents to rank 10 different items in terms of importance. The Ranking question type is proving to not be a hit with our focus group of testers. I have read the manual but am not finding anything useful. What I want to achieve is each array item must have a unique response -- you can't have two items ranked as #3, for example.

I could a possibly relevant thread, but the suggested answer returns a 403 error:( 
Here is the thread:  forums.limesurvey.org/forum/can-i-do-thi...nk-with-radio-button
Here is the suggestion:  forums.limesurvey.org/forum/design-issue...-but-now-for-colomns

Any help or insight is appreciated!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago - 3 years 3 months ago #225414 by Joffm
Replied by Joffm on topic Radio button array used for ranking
Hi,
the usual way to achieve this is to validate the question using the function "unique"
Enter in "question validation equation" : unique(self)
and in "question validation tip" a text of your choice, like "All values have to unique"
Please read here
[url] www.limesurvey.org/manual/ExpressionScri...mplemented_functions [/url]
and
[url] www.limesurvey.org/manual/ExpressionScri....22that.22_variables [/url]

Joffm

P.S.
The thread that you linked is 8 years old.
We do not know which version nicoillo used.
Maybe this function (unique) wasn't implemented at that time (I do not know).
But therefore he probably did it the hard way, comparing each subquestion with all others.
Another issue here
((Q05_SQ001 != Q05_SQ002) AND (Q05_SQ001 != Q05_SQ003) AND (Q05_SQ001 != Q05_SQ004) AND (Q05_SQ001 != Q05_SQ005) AND
(
Q05_SQ002 != Q05_SQ001) AND (Q05_SQ002 != Q05_SQ003) AND (Q05_SQ002 != Q05_SQ004) AND (Q05_SQ002 != Q05_SQ005) AND
(Q05_SQ003 != Q05_SQ001) AND (
Q05_SQ003 != Q05_SQ002) AND (Q05_SQ003 != Q05_SQ004) AND (Q05_SQ003 != Q05_SQ005) AND
(
Q05_SQ004 != Q05_SQ001) AND (Q05_SQ004 != Q05_SQ002) AND (Q05_SQ004 != Q05_SQ003) AND (Q05_SQ004 != Q05_SQ005) AND
(Q05_SQ005 != Q05_SQ001) AND (Q05_SQ005 != Q05_SQ002) AND (Q05_SQ005 != Q05_SQ003) AND (Q05_SQ005 != Q05_SQ004))

You see the not necessary double comparisons. Each comparison appears twice.

This can be done shorter
((Q05_SQ001 != Q05_SQ002) AND (Q05_SQ001 != Q05_SQ003) AND (Q05_SQ001 != Q05_SQ004) AND (Q05_SQ001 != Q05_SQ005) AND
(Q05_SQ002 != Q05_SQ003) AND (Q05_SQ002 != Q05_SQ004) AND (Q05_SQ002 != Q05_SQ005) AND
(Q05_SQ003 != Q05_SQ004) AND (Q05_SQ003 != Q05_SQ005) AND
(Q05_SQ004 != Q05_SQ005))

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 3 months ago by Joffm.
The following user(s) said Thank You: tosa2021

Please Log in to join the conversation.

  • tosa2021
  • tosa2021's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 3 months ago #225457 by tosa2021
Replied by tosa2021 on topic Radio button array used for ranking
Thanks!! Working as expected.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose