Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: How to rank 'only' those items/answers that have been selected

How to rank 'only' those items/answers that have been selected 3 years 4 months ago #97735

  • spessex
  • spessex's Avatar
  • Offline
  • Junior Lime
  • Posts: 21
  • Karma: 0
I know there is a ranking question type, but is it possible to rank only those items/answers that have been selected?

For example, let's say we have a question that asks the respondent to select their favourite food from a list of 10 food types. Say the respondent selects 6 food types we would then want them to rank those food types in order of preference (presumably in the next question?). Similarly another respondent might only select 3 food types (which could be different) and again these 3 food types would then need to be ranked in order of importance.

You might be asking well why not just show all the food types and tell them to select and rank only those they are interested in but 1) I'm not sure if this is even possible and 2) it would taint the research as most people would not do this and would in fact select food types that they were not interested in but put them in a low ranking.

Hope someone can advise? :unsure:

Stephen
The administrator has disabled public write access.

How to rank 'only' those items/answers that have been selected 3 years 4 months ago #97756

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1373
  • Karma: 389
Did you read the manual ?

Array filter (array_filter)
?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.
The following user(s) said Thank You: spessex

How to rank 'only' those items/answers that have been selected 3 years 4 months ago #97812

  • first
  • first's Avatar
  • Offline
  • Platinum Lime
  • Posts: 329
  • Thank you received: 35
  • Karma: 15
Yup array filter will work fine for u..
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
The administrator has disabled public write access.
Time to create page: 0.215 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form