- Posts: 31
- Thank you received: 2
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Ranking of previous answers with score 4 or 5 in array (5 point choice)
- karld
- Topic Author
- Offline
- Junior Member
Less
More
3 years 3 weeks ago #214283
by karld
Ranking of previous answers with score 4 or 5 in array (5 point choice) was created by karld
Hello,
I am working on a LS instance Version 3.15.0+181008.
Respondents need to rank the propositions for which they gave a 4 or 5 score in a serie of arrays (5 point choice) above in the questionnaire.
I have attached a sample survey:
Thanks in advance.
I am working on a LS instance Version 3.15.0+181008.
Respondents need to rank the propositions for which they gave a 4 or 5 score in a serie of arrays (5 point choice) above in the questionnaire.
I have attached a sample survey:
- q1 to q4 are the arrays (5 point choices)
- q5 is a multiple choice which displays the answers which have a 4 or 5 score: it is feeding the ranking question, and should be hidden in the final survey
- q8 is a ranking with an array filter on q5
- you can ignore q6 and q7
Thanks in advance.
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
3 years 3 weeks ago #214296
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Ranking of previous answers with score 4 or 5 in array (5 point choice)
Well, what did you to check them? Based on your description it seems "nothing".
You will need to create one or several equation type questions that will attribute the values to your multiple choice question.
So put an equation question after your Q5 and use something like this:
{if(Q1_sq001>3;q5_sq001='Y')}
Not tested, needs to be adapted to your question and subquestion codes of course.
You will need to create one or several equation type questions that will attribute the values to your multiple choice question.
So put an equation question after your Q5 and use something like this:
{if(Q1_sq001>3;q5_sq001='Y')}
Not tested, needs to be adapted to your question and subquestion codes of course.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: karld
The topic has been locked.
- karld
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 2
3 years 3 weeks ago - 3 years 3 weeks ago #214301
by karld
Replied by karld on topic Ranking of previous answers with score 4 or 5 in array (5 point choice)
Thank you very much, Holch. I added an equation question and put the following as you suggested:
{if(q1_SQ001>3,q5_SQ001='Y')}
{if(q1_SQ002>3,q5_SQ002='Y')}
{if(q1_SQ003>3,q5_SQ003='Y')}
{if(q2_SQ001>3,q5_SQ004='Y')}
{if(q2_SQ002>3,q5_SQ005='Y')}
{if(q2_SQ003>3,q5_SQ006='Y')}
{if(q3_SQ001>3,q5_SQ007='Y')}
{if(q3_SQ002>3,q5_SQ008='Y')}
{if(q3_SQ003>3,q5_SQ009='Y')}
{if(q4_SQ001>3,q5_SQ010='Y')}
{if(q4_SQ002>3,q5_SQ011='Y')}
{if(q4_SQ003>3,q5_SQ012='Y')}
Now the answers in the multiple question appear checked as I want, but the Ranking question below doesn't show, only a 'Y' for each answer with a score or 4 or 5.
See screenshots: before adding the equation question when I needed to manually check the multiple question answers, then the situation with the equation.
Thanks again for your help.
Before adding the equation question:
After adding the equation question:
{if(q1_SQ001>3,q5_SQ001='Y')}
{if(q1_SQ002>3,q5_SQ002='Y')}
{if(q1_SQ003>3,q5_SQ003='Y')}
{if(q2_SQ001>3,q5_SQ004='Y')}
{if(q2_SQ002>3,q5_SQ005='Y')}
{if(q2_SQ003>3,q5_SQ006='Y')}
{if(q3_SQ001>3,q5_SQ007='Y')}
{if(q3_SQ002>3,q5_SQ008='Y')}
{if(q3_SQ003>3,q5_SQ009='Y')}
{if(q4_SQ001>3,q5_SQ010='Y')}
{if(q4_SQ002>3,q5_SQ011='Y')}
{if(q4_SQ003>3,q5_SQ012='Y')}
Now the answers in the multiple question appear checked as I want, but the Ranking question below doesn't show, only a 'Y' for each answer with a score or 4 or 5.
See screenshots: before adding the equation question when I needed to manually check the multiple question answers, then the situation with the equation.
Thanks again for your help.
Before adding the equation question:
After adding the equation question:
Last edit: 3 years 3 weeks ago by karld.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
3 years 3 weeks ago #214302
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Ranking of previous answers with score 4 or 5 in array (5 point choice)
Well, this is not a ranking question, where the "Y" shows up, this is a text display question at the max.
I currently don't have the time to look into your LSS, but were the red circle is, this is definitely no ranking question, based on the screenshot.
I currently don't have the time to look into your LSS, but were the red circle is, this is definitely no ranking question, based on the screenshot.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- karld
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 2
3 years 3 weeks ago #214304
by karld
Replied by karld on topic Ranking of previous answers with score 4 or 5 in array (5 point choice)
OK, I made some checks: this is the equation question that shows the 'Y' (now I put "always hide this question" so it is not displayed).
But the ranking question does not appear with the automatically checked answers in the multiple choice question.
If I uncheck and check again the answer in the multiple choice question, the ranking question appears. This means that having the answers checked in the multiple choice question is not enough to have them appear in the ranking question. Any other idea?
Here is the updated lss file in attachment.
Many thanks.
But the ranking question does not appear with the automatically checked answers in the multiple choice question.
If I uncheck and check again the answer in the multiple choice question, the ranking question appears. This means that having the answers checked in the multiple choice question is not enough to have them appear in the ranking question. Any other idea?
Here is the updated lss file in attachment.
Many thanks.
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
3 years 3 weeks ago #214305
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Ranking of previous answers with score 4 or 5 in array (5 point choice)
Just one guess: Is the equation question on the same page as the ranking question? they should be on different pages.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: karld
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12930
- Thank you received: 3978
3 years 3 weeks ago #214307
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Ranking of previous answers with score 4 or 5 in array (5 point choice)
Hi,
1st: q9 shouldn't be behind the ranking question.
2nd: If you display it on the same page it only works if q5 is displayed what is not desired.
3rd: Conclusion. You have to put your ranking question into a next group, what is always better.
You know that respondents will change their rating if they see that each rating > 3 has to be ranked.
Joffm
1st: q9 shouldn't be behind the ranking question.
2nd: If you display it on the same page it only works if q5 is displayed what is not desired.
3rd: Conclusion. You have to put your ranking question into a next group, what is always better.
You know that respondents will change their rating if they see that each rating > 3 has to be ranked.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: karld
The topic has been locked.
- karld
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 2
3 years 3 weeks ago - 3 years 3 weeks ago #214352
by karld
Replied by karld on topic Ranking of previous answers with score 4 or 5 in array (5 point choice)
Thanks to both of you. I put the Ranking question alone in another group so it is displayed on a separate page.
The result is still not the one desired: all subquestions from q5 (the multiple choice question) appear in the ranking question (q9) on the second page/question group, even though only those with a score of 4 or 5 are checked in q5 in the first page/question group:
Group 1:
Group 2 (I have added a text display question to check some values):
The ranking question (q9) has q5 as array filter, so I don't get why all answers from q5 are displayed:
Question group: Question group 2 (ID:22)
Code: q8 : (Optional question)
Question: Ranking of propositions
Help:
Type: Ranking
Mandatory: No
Relevance equation:1
Maximum columns for answers:12
Array filter:q5
Any idea?
Thanks in advance.
The result is still not the one desired: all subquestions from q5 (the multiple choice question) appear in the ranking question (q9) on the second page/question group, even though only those with a score of 4 or 5 are checked in q5 in the first page/question group:
Group 1:
Group 2 (I have added a text display question to check some values):
The ranking question (q9) has q5 as array filter, so I don't get why all answers from q5 are displayed:
Question group: Question group 2 (ID:22)
Code: q8 : (Optional question)
Question: Ranking of propositions
Help:
Type: Ranking
Mandatory: No
Relevance equation:1
Maximum columns for answers:12
Array filter:q5
Any idea?
Thanks in advance.
Attachments:
Last edit: 3 years 3 weeks ago by karld.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12930
- Thank you received: 3978
3 years 3 weeks ago #214355
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Ranking of previous answers with score 4 or 5 in array (5 point choice)
q9 before q5
and you can have all questions in one group if you do NOT hide q5 with "Always hide this question" BUT with the css class "hidden"
Joffm
and you can have all questions in one group if you do NOT hide q5 with "Always hide this question" BUT with the css class "hidden"
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: karld
The topic has been locked.
- karld
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 2
3 years 3 weeks ago #214356
by karld
Replied by karld on topic Ranking of previous answers with score 4 or 5 in array (5 point choice)
Thank you very much, that was it : q9 before q5. Great.
The topic has been locked.