- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Sub-question Tailoring
- zibarzani
- Topic Author
- Offline
- New Member
Less
More
9 years 7 months ago #111916
by zibarzani
Sub-question Tailoring was created by zibarzani
Hello,
I am a beginner in desperate need of help!
I have an array question ("B1") that asks respondents to enter 1 to 10 names of relatives. In next question ("B13") which is array dual scale they are asked to answer few questions about these people.
I used this code in sub-questions to fill it with answers:
{INSERTANS:181543X128X1070B1Y1_B1X1}
Now my problem is: I want to change the number of visible rows of sub-questions in "B13" regarding the number of answers to "B1".
(You may find the problem clearly in the attached prt scr)
I read this page in forum:
manual.limesurvey.org/Expression_Manager...cading_Array_Filters
And, tried adding "B1" in 'array filter' of "B13", but it didn't work!
Thank You!
I am a beginner in desperate need of help!
I have an array question ("B1") that asks respondents to enter 1 to 10 names of relatives. In next question ("B13") which is array dual scale they are asked to answer few questions about these people.
I used this code in sub-questions to fill it with answers:
{INSERTANS:181543X128X1070B1Y1_B1X1}
Now my problem is: I want to change the number of visible rows of sub-questions in "B13" regarding the number of answers to "B1".
(You may find the problem clearly in the attached prt scr)
I read this page in forum:
manual.limesurvey.org/Expression_Manager...cading_Array_Filters
And, tried adding "B1" in 'array filter' of "B13", but it didn't work!
Thank You!
Attachments:
The topic has been locked.
- Bigred01
- Offline
- Premium Member
Less
More
- Posts: 88
- Thank you received: 33
9 years 7 months ago #111935
by Bigred01
Replied by Bigred01 on topic Sub-question Tailoring
You can only filter with multiple choice questions.
If you have an array and want the answers in this array to filter the next array, you will need to have a hidden multiple choice question where you check specific answers based on your logic and then put the SGQ code for this question in the target arrays arrayfilter option.
This will involve javascript to make it work.
(Anyone, please let me know if I'm wrong and if there is a much easier way of using the array filter with non multiple choice questions)
If you have an array and want the answers in this array to filter the next array, you will need to have a hidden multiple choice question where you check specific answers based on your logic and then put the SGQ code for this question in the target arrays arrayfilter option.
This will involve javascript to make it work.
(Anyone, please let me know if I'm wrong and if there is a much easier way of using the array filter with non multiple choice questions)
The following user(s) said Thank You: zibarzani
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
9 years 7 months ago #111940
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Sub-question Tailoring
Another solution may be to have 10 array dual scale questions, each with only one sub-question. You could then use relevance to hide/show those question based on the answers in the first array.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: zibarzani
The topic has been locked.
- zibarzani
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
9 years 7 months ago - 9 years 7 months ago #112061
by zibarzani
Replied by zibarzani on topic Sub-question Tailoring
Are you sure?
In manual it says:
"Starting in 1.92, subsequent questions can be filtered on any array question types, including:
Multiple choice
Multiple choice with comments
Multiple short text
Multiple numeric
Array (5 point, 10 point, Yes/No/Unknown, Increase/Same/Decrease, Column)
Array (Dual Scale, Text, Numbers)
Ranking"
And, here is an example from manual that is exactly what I want to do:
In manual it says:
"Starting in 1.92, subsequent questions can be filtered on any array question types, including:
Multiple choice
Multiple choice with comments
Multiple short text
Multiple numeric
Array (5 point, 10 point, Yes/No/Unknown, Increase/Same/Decrease, Column)
Array (Dual Scale, Text, Numbers)
Ranking"
And, here is an example from manual that is exactly what I want to do:
Last edit: 9 years 7 months ago by zibarzani.
The topic has been locked.
- fransmarcelissen
- Offline
- Premium Member
Less
More
- Posts: 113
- Thank you received: 46
9 years 7 months ago #112062
by fransmarcelissen
Replied by fransmarcelissen on topic Sub-question Tailoring
Maybe I am wrong, but as far as I understand it works fine if you use a multipe choice with comment type. If the multiple choice question is mc_1, the comment is in mc_1comment
Frans
Frans
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
9 years 7 months ago #112065
by tpartner
Here is a working LS 2.05 survey:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Sub-question Tailoring
Hmm...it seems that you can filter an array by a previous multiple-short-text question.And, here is an example from manual that is exactly what I want to do
Here is a working LS 2.05 survey:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The topic has been locked.