- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array filter in Array question
- AAAlime
- Topic Author
- Offline
- New Member
Less
More
3 years 4 months ago #208649
by AAAlime
Array filter in Array question was created by AAAlime
Hello every one!
I have a survey to run and I have an Array (Q1) with some options where people are asked to stated if they have or not that option (see attached).
In the second question I would like to create an Array (Q2) where people can comment on those options that they said "Yes" to the former question (Q1).
In the third question I would like to create an Array (Q3) where people can say how they want that option to be for those option where they say "NO" to the first question (Q1).
Does anyone knows how to do it?
Many many thanks!!
I have a survey to run and I have an Array (Q1) with some options where people are asked to stated if they have or not that option (see attached).
In the second question I would like to create an Array (Q2) where people can comment on those options that they said "Yes" to the former question (Q1).
In the third question I would like to create an Array (Q3) where people can say how they want that option to be for those option where they say "NO" to the first question (Q1).
Does anyone knows how to do it?
Many many thanks!!
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12886
- Thank you received: 3965
3 years 4 months ago - 3 years 4 months ago #208651
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Array filter in Array question
Hello,
in your scenario the use of "array filter" is not possible.
In the manual
manual.limesurvey.org/Question_type_-_Mu...rray_filter_style.29
you read this
But you do not use a multiple choice question but an array to filter the next questions.
You have to use "subquestion relevance" in Q2 and Q3.
Enter in each subquestion of Q2 the condition that it is shown.
This is "This item was answered 'Yes'".
Q1_SQ001==Code of Yes
Q1_SQ002==Code of Yes
...
And in Q3 the other way. Here only these items are displayed where the answer was "No".
Q1_SQ001==Code of No
Q1_SQ002==Code of No
...
By the way: You can use "multiple short text" for Q2 and Q3.
Joffm
in your scenario the use of "array filter" is not possible.
In the manual
manual.limesurvey.org/Question_type_-_Mu...rray_filter_style.29
you read this
The Array filter setting allows you to use any multiple choice question to select or set which responses are displayed in a subsequent list, array or multiple choice question.
But you do not use a multiple choice question but an array to filter the next questions.
You have to use "subquestion relevance" in Q2 and Q3.
Enter in each subquestion of Q2 the condition that it is shown.
This is "This item was answered 'Yes'".
Q1_SQ001==Code of Yes
Q1_SQ002==Code of Yes
...
And in Q3 the other way. Here only these items are displayed where the answer was "No".
Q1_SQ001==Code of No
Q1_SQ002==Code of No
...
By the way: You can use "multiple short text" for Q2 and Q3.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 4 months ago by Joffm.
The topic has been locked.
- AAAlime
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
3 years 4 months ago #208699
by AAAlime
Replied by AAAlime on topic Array filter in Array question
Dear Joffm! Many thanks!
So, just to better understand: you are suggesting me to have Q1 as multiple choice (I can't have an array?)
Then I have to insert the array filter for Q2 and Q3 and also add the equation in the "subquestions relevance"? - but then I won't have any code for the "Yes answer" before if I chose a multiple choice question.
Many thanks again!!
So, just to better understand: you are suggesting me to have Q1 as multiple choice (I can't have an array?)
Then I have to insert the array filter for Q2 and Q3 and also add the equation in the "subquestions relevance"? - but then I won't have any code for the "Yes answer" before if I chose a multiple choice question.
Many thanks again!!
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12886
- Thank you received: 3965
3 years 4 months ago #208706
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Array filter in Array question
Q1 IS an array with two answer options , "yes" and "no".
And each has a code that depends on you.
Joffm
And each has a code that depends on you.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
3 years 4 months ago #208712
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 Array filter in Array question
You could use array filter if Q1 would be a multiple answer question, where people tick when they want to say "yes".
if you want to stick with the Yes/No approach you need to use an array question just like you did. In this case you need to use the subquestion relevance on the following questions, like Joffm explained.
if you want to stick with the Yes/No approach you need to use an array question just like you did. In this case you need to use the subquestion relevance on the following questions, like Joffm explained.
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.