Welcome to the LimeSurvey Community Forum

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

Ranking question from multiple choice with more than one "other"

  • karld
  • karld's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 week 5 days ago #263343 by karld
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.6.48+231205
Own server or LimeSurvey hosting: own
Survey theme/template: extends_fruity
==================
Hello,

I would like to rank the answers from a previous question.
The ranking should include all selected answers from the multiple choice (G02Q62), and if "other" has been selected, 1 to 3 extra answers (depending on which were selected) from a multiple choice with comments (G01Q21, the text from the comment should be the answer(s) in the ranking question,G02Q62ranktest).

I attached a LSS as example.

Thanks in advance.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 5 days ago #263347 by Joffm
Add a second array filter.
Add "G01Q21" to the array filter
Add the subquerstion codes of G01Q21 "SQ001",... to your ranking question with the answer option text "{G01Q21_SQ001comment", "G01Q21_SQ002comment",...

 

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 week 5 days ago #263350 by DenisChenu
How ! This is great !

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.

Please Log in to join the conversation.

  • karld
  • karld's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 week 5 days ago #263351 by karld
Thank you very much for the quick and accurate response, Joffm!

Please Log in to join the conversation.

  • karld
  • karld's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 days 2 hours ago #263808 by karld
Hello again,

When testing the survey, the sorting question appears with empty boxes in the left column (see picture in attachment).
Would it be possible to get rid of them?

It seems that 3 of the 4 boxes correspond to the 3 comments from the question appearing when "Other" is selected in the question feeding the sorting question.

Thanks in advance.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 days 2 hours ago #263822 by Joffm
Seems, you have some errors regarding array filter or coding.
Send the lss export.

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • karld
  • karld's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 days 1 hour ago #263842 by karld
Thank you, here it is.

Cheers

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 days 1 hour ago - 6 days 1 hour ago #263862 by Joffm
As I supposed: wrong codes.

As you read here
[url] manual.limesurvey.org/Question_type_-_Mu...ilter_(array_filter) [/url]
  The subquestion codes used in the first question must coincide with the subquestion codes from the second one. Otherwise, the array filter function will not filter the answers to the first question. Note: When you want to filter the "other" answer option from the first question, you need to provide a subquestion for this answer in the second question and the subquestion code for this answer needs to be "other". Check the below example to better understand how the whole system works.

But your codes do not (red).
And there is an empty option (blue). 


So, either you recode in the ranking question to "SQ001",... or you recode the "other" question to "AO10",...

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 days 1 hour ago by Joffm.
The following user(s) said Thank You: DenisChenu, karld

Please Log in to join the conversation.

  • karld
  • karld's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 days 22 hours ago #263893 by karld
Yes, indeed.
Thank you very much once again!

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose