Welcome to the LimeSurvey Community Forum

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

Ranking questions...

  • stingray2772
  • stingray2772's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #129727 by stingray2772
Ranking questions... was created by stingray2772
Whats up! New to LimeSurvey, and I am trying to implement a survey I had created in Voxco. I can no longer use Voxco and needed a ranking question which is why I looked at LimeSurvey. The problem I am having right now is I have list of options which a user selects (multiple choice). I then want to ask the user to add in another other items that were missing from the list. Once that is done, I want  to present the ranking question to the user and have it use both the selected multiple choice, and the manually inputted short text. I see that in newer versions LimeSurvey supports multiple short text on the ranking, but I can't get it to work. The manual says it supports multiple short text, and shows an image that is somewhat showing what I want, but then it states 'Array filter question settings require the questions being used to have exactly matching lists of answers. If the questions do not have exactly the same set of answers and codes, then the filters will break.' so how do you add in the options on the ranking if you are asking a user for manual text entry? Has anybody used that feature before? I am just having problems setting it up.

Example here:

Q1 - Multiple Choice
What colors do you like?
Blue, Red, Green, Brown, Black, Purple, Pink, White, Tan
[ User selects 'Blue', 'Green', and 'Purple' ]

Q2 - Short Text (or Multiple Short Text)
Please enter a color you like missing from the previous available options.
[ User inputs 'Yellow']

Q3 - Ranking
Please rank the colors you have chosen in order from most favorite to least favorite.
Blue
Green
Purple
Yellow

My example isn't quite this straight forward - it is dealing with people's names, so it will have very unpredictable results.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 months ago #129763 by tpartner
Replied by tpartner on topic Ranking questions...
I haven't tried it with short-text but it does work with multiple-short-text in LS 2.6. The trick is to have unique codes for all sub-questions in both the multiple-choice and the multiple-short-text and use those codes in the ranking.

Sample survey attached:

File Attachment:

File Name: limesurvey...-2-3.lss
File Size:24 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: Antonimo
The topic has been locked.
More
7 years 6 months ago #141585 by jelo
Replied by jelo on topic Ranking questions...

Antonimo wrote: Is it not possible to extend the same logic to further questions?

That should work. Perhaps a mistype somewhere. Which LS version/build is currently used?
Did you insert the {q3_AS1} when using the SOURCE view in the question editor?
The {} can get messed up in the HTML mode.
Try {q3_AS1.shown} as well.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
7 years 6 months ago #141587 by jelo
Replied by jelo on topic Ranking questions...
I would create a small survey with just the questions and attach that to this thread.
I currently don't see a mistake in the provided information.
Personally I would copy the question and rename all vars to see if there is a glitch. Just take q3_SQ010 etc.
Perhaps it is a bug with the current build of LS.
Providing a small survey file would help others to reproduce the issue.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
7 years 6 months ago #141598 by jelo
Replied by jelo on topic Ranking questions...
Since you want to show the ranks with the entered values instead of codes please use this:
Code:
Here are the results of your ranking:
{AudienceSort_1.shown}
{AudienceSort_2.shown}
{AudienceSort_3.shown}

If you use {AudienceSort_1} you will get A1 or a different code, but not the entered text.
The suffix .shown show the "display value" of a variable.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
7 years 6 months ago #141605 by jelo
Replied by jelo on topic Ranking questions...
My explanation might focused to much on .shown.
The real issue was that the ranks are accessed via {AudienceSort_1}.
In the question text you used {AudienceSort_A1}.
I often got stuck into similar situations.
A good way to find these little mistypes on your own is to take a look at the survey logic file.


A short look at the different variables often gave me a hint how to get the values I want.
Sometimes it helps me to ensure that there is a bug in LS and not in my head too.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose