- Posts: 49
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array Filters with Drop Down Lists and Ranking Questions
- danika
- Topic Author
- Offline
- Senior Member
Less
More
9 years 9 months ago - 9 years 9 months ago #110912
by danika
Array Filters with Drop Down Lists and Ranking Questions was created by danika
Greetings,
There is plenty of documentation on using array filters to insert answers from previous questions into subsequent ones. In the manual, it lists all the source questions that can be used to do this. However, drop down lists are not one of the question types listed.
The subsequent question I am using is Rankings. So, my question is if there is a way to have selected answers from drop down lists appear in the sub questions of the ranking question using array filters?
The second part of this question is if there is a way to have answers only from questions actually answered appear in the 'Your Choices' sub question list of the ranking question?
Within the question group, there are six possible answers that can appear in the ranking question. Only the first is mandatory, and the other five are optional. There is no need to rank one answer, as it will always be the first. So, we can hide the question using conditions unless a second question is answered. However, at this point, there is no need to have all six options appear in the 'Your Choices' sub question list when there are only two answers to rank. So, we would want additional answers 3-6 to appear only as required if answered, if this is at all possible?
Thanks in advance.
There is plenty of documentation on using array filters to insert answers from previous questions into subsequent ones. In the manual, it lists all the source questions that can be used to do this. However, drop down lists are not one of the question types listed.
The subsequent question I am using is Rankings. So, my question is if there is a way to have selected answers from drop down lists appear in the sub questions of the ranking question using array filters?
The second part of this question is if there is a way to have answers only from questions actually answered appear in the 'Your Choices' sub question list of the ranking question?
Within the question group, there are six possible answers that can appear in the ranking question. Only the first is mandatory, and the other five are optional. There is no need to rank one answer, as it will always be the first. So, we can hide the question using conditions unless a second question is answered. However, at this point, there is no need to have all six options appear in the 'Your Choices' sub question list when there are only two answers to rank. So, we would want additional answers 3-6 to appear only as required if answered, if this is at all possible?
Thanks in advance.
Last edit: 9 years 9 months ago by danika.
The topic has been locked.
- danika
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 9 months ago #110913
by danika
Replied by danika on topic Array Filters with Drop Down Lists and Ranking Questions
Update - if you use the name of the question from drop down list questions it will display the sub question code, such as A5, for example. However, I need the string that is attached to A5 to display instead. So, now the question becomes one of how to get the string associated with this?
Any thoughts appreciated.
Any thoughts appreciated.
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
9 years 9 months ago #110930
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Array Filters with Drop Down Lists and Ranking Questions
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The following user(s) said Thank You: danika
The topic has been locked.
- danika
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 9 months ago #110934
by danika
Brilliant! Thanks, Mazi.
Any way to address the second part of this question about only showing options in the 'Your Choices' list for questions that have been answered?
Best -
Danika
Replied by danika on topic Array Filters with Drop Down Lists and Ranking Questions
Mazi wrote: Did you try "questioncode.shown"?
manual.limesurvey.org/Expression_Manager#Access_to_Variables
Brilliant! Thanks, Mazi.
Any way to address the second part of this question about only showing options in the 'Your Choices' list for questions that have been answered?
Best -
Danika
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
9 years 9 months ago #110941
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Array Filters with Drop Down Lists and Ranking Questions
Since I assume you are already using array filter I have no further ideas.danika wrote: Any way to address the second part of this question about only showing options in the 'Your Choices' list for questions that have been answered?
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- danika
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 9 months ago - 9 years 9 months ago #110943
by danika
Perhaps I don't understand fully how it is used. I have 6 SQs (Qcode: a2-a7) holding all the aforementioned variables. Without array filters, these 6 placeholders are visible whether the questions are answered or not.
a2 is mandatory, while a3-a7 are optional. Using the array filters, if I use a2, for example, all the placeholders become visible since the first variable is entered. However, if I use a2;a3;a4; for example, none of the placeholders are visible until the variable in a4 has been entered. At this point, all remaining empty placeholders also become visible, and the user is asked to rank empty placeholders whether they answer the optional questions or not.
Am I missing something here? I doesn't seem like users should be asked to rank empty placeholders, and if I use all filters a2-a7 nothing is visible until the last variable is entered even though from a3 on the remaining questions are optional.
Replied by danika on topic Array Filters with Drop Down Lists and Ranking Questions
Mazi wrote: Since I assume you are already using array filter I have no further ideas.
Perhaps I don't understand fully how it is used. I have 6 SQs (Qcode: a2-a7) holding all the aforementioned variables. Without array filters, these 6 placeholders are visible whether the questions are answered or not.
a2 is mandatory, while a3-a7 are optional. Using the array filters, if I use a2, for example, all the placeholders become visible since the first variable is entered. However, if I use a2;a3;a4; for example, none of the placeholders are visible until the variable in a4 has been entered. At this point, all remaining empty placeholders also become visible, and the user is asked to rank empty placeholders whether they answer the optional questions or not.
Am I missing something here? I doesn't seem like users should be asked to rank empty placeholders, and if I use all filters a2-a7 nothing is visible until the last variable is entered even though from a3 on the remaining questions are optional.
Last edit: 9 years 9 months ago by danika.
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
9 years 9 months ago #110945
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Array Filters with Drop Down Lists and Ranking Questions
Maybe you have set this up wrong? You always need to enter the QUESTION code at the array filter field, not the SUBquestion code.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- danika
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 9 months ago #110946
by danika
Replied by danika on topic Array Filters with Drop Down Lists and Ranking Questions
Thanks, Mazi. I am using the qcodes and not the SQ codes. In the SQs for the Ranking question itself is where I am placing reference to stored variables such as {435562X2X26.shown} {435562X2X27SQ001}, for example. These were from your earlier suggestion, and work like a charm. But, I'm afraid on the array filters using Qcodes it is an all or nothing proposition as far as the ranking question goes.
I know that I've seen this work with other array-type questions as you would expect it to. No joy on the Ranking question though.
I know that I've seen this work with other array-type questions as you would expect it to. No joy on the Ranking question though.
The topic has been locked.
- danika
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 9 months ago - 9 years 9 months ago #110947
by danika
Replied by danika on topic Array Filters with Drop Down Lists and Ranking Questions
Attachments:
Last edit: 9 years 9 months ago by danika.
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
9 years 9 months ago #110951
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Array Filters with Drop Down Lists and Ranking Questions
The only weird setting I can see is the last ";" at the "Array filter".
If the common array filter approach doesn't work for ranking questions, please file a bug report.
If the common array filter approach doesn't work for ranking questions, please file a bug report.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- danika
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 9 months ago #110953
by danika
Replied by danika on topic Array Filters with Drop Down Lists and Ranking Questions
Thanks, Mazi. I was working on documenting that right now, as a matter of fact. I've may also have found another fully qualified bug, and I use the term sparingly.
Using conditions, I've actually been able to break the cascading logic of the question group. Seems that placing a default answer in the drop down list box breaks the conditional IF logic to show or hide the next question. I am trying other IF/AND or other options to see if this can be resolved. If not, I will follow up with bug report on that as well.
Briefly, if you place a default answer in a drop down list box of 3rd order logic, and make the next question conditional upon being NOT EQUAL TO or GREATER THAN the default answer, it shows anyway until you make your way through the survey to the question immediately preceding the conditional question. Only then it works according to the IF conditions. I can send you the question group if you are interested in having a look?
Using conditions, I've actually been able to break the cascading logic of the question group. Seems that placing a default answer in the drop down list box breaks the conditional IF logic to show or hide the next question. I am trying other IF/AND or other options to see if this can be resolved. If not, I will follow up with bug report on that as well.
Briefly, if you place a default answer in a drop down list box of 3rd order logic, and make the next question conditional upon being NOT EQUAL TO or GREATER THAN the default answer, it shows anyway until you make your way through the survey to the question immediately preceding the conditional question. Only then it works according to the IF conditions. I can send you the question group if you are interested in having a look?
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
9 years 9 months ago #110954
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Array Filters with Drop Down Lists and Ranking Questions
If you can safely reproduce this issue with the latest version please file a bug report, attach a test survey at the bugtracker and post the link here.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.