- Posts: 36
- Thank you received: 2
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
- Topic Author
- Offline
- Junior Member
Less
More
1 week 5 days ago #263343
by karld
Ranking question from multiple choice with more than one "other" was created 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.
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.
Attachments:
Please Log in to join the conversation.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13058
- Thank you received: 4021
1 week 5 days ago #263347
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Ranking question from multiple choice with more than one "other"
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13716
- Thank you received: 2502
1 week 5 days ago #263350
by DenisChenu
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 Ranking question from multiple choice with more than one "other"
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 2
1 week 5 days ago #263351
by karld
Replied by karld on topic Ranking question from multiple choice with more than one "other"
Thank you very much for the quick and accurate response, Joffm!
Please Log in to join the conversation.
- karld
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 2
6 days 4 hours ago #263808
by karld
Replied by karld on topic Ranking question from multiple choice with more than one "other"
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.
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.
Attachments:
Please Log in to join the conversation.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13058
- Thank you received: 4021
6 days 3 hours ago #263822
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Ranking question from multiple choice with more than one "other"
Seems, you have some errors regarding array filter or coding.
Send the lss export.
Joffm
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 2
6 days 3 hours ago #263842
by karld
Replied by karld on topic Ranking question from multiple choice with more than one "other"
Thank you, here it is.
Cheers
Cheers
Attachments:
Please Log in to join the conversation.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13058
- Thank you received: 4021
6 days 3 hours ago - 6 days 3 hours ago #263862
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Ranking question from multiple choice with more than one "other"
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
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 3 hours ago by Joffm.
The following user(s) said Thank You: DenisChenu, karld
Please Log in to join the conversation.
- karld
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 2
5 days 23 hours ago #263893
by karld
Replied by karld on topic Ranking question from multiple choice with more than one "other"
Yes, indeed.
Thank you very much once again!
Thank you very much once again!
Please Log in to join the conversation.