- Posts: 78
- Thank you received: 2
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array filter for multiple with comments or multiple short text
- tixeon
- Topic Author
- Offline
- Senior Member
Less
More
4 years 5 days ago #195717
by tixeon
Array filter for multiple with comments or multiple short text was created by tixeon
I can't get the array filter to work when the follow-up question is a multiple short text or multiple with comments question type. Example attached
.
It shows all lines in the follow-up questions, instead of just those selected in the anchor question.
I have tried both the array filter and relevance equation on each subquestion and neither work.
Version 3.22.9 hosted.
What am I doing wrong?
It shows all lines in the follow-up questions, instead of just those selected in the anchor question.
I have tried both the array filter and relevance equation on each subquestion and neither work.
Version 3.22.9 hosted.
What am I doing wrong?
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12789
- Thank you received: 3940
4 years 5 days ago #195719
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Array filter for multiple with comments or multiple short text
Hi,
as explained in the array filter the subquestions in both question must be the same.
But in your second question some subquestions are missing.
If you add them and set their relevance to "0" the relevance on the other - active - subquestions is not necessary, because the array filter works.
Joffm
By the way: Wouldn't be one question (multiple with comment) sufficient, where you hide the comment fields at unnecessary subquestions?
as explained in the array filter the subquestions in both question must be the same.
But in your second question some subquestions are missing.
If you add them and set their relevance to "0" the relevance on the other - active - subquestions is not necessary, because the array filter works.
Joffm
By the way: Wouldn't be one question (multiple with comment) sufficient, where you hide the comment fields at unnecessary subquestions?
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- tixeon
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 78
- Thank you received: 2
4 years 4 days ago #195763
by tixeon
Replied by tixeon on topic Array filter for multiple with comments or multiple short text
Thanks Joffm,
I will give that a go. I didn't know about the 0 relevance equation option.
Also, I used to be able to hide the comment boxes for certain subquestions in previous versions (through CSS), but it doesn't seem to work properly in the current version (won't hide them in some browsers). Can you point me towards instructions that will work with my version as that would be my preference.
I will give that a go. I didn't know about the 0 relevance equation option.
Also, I used to be able to hide the comment boxes for certain subquestions in previous versions (through CSS), but it doesn't seem to work properly in the current version (won't hide them in some browsers). Can you point me towards instructions that will work with my version as that would be my preference.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12789
- Thank you received: 3940
4 years 4 days ago #195764
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Array filter for multiple with comments or multiple short text
Hi,
The two boolean values FALSE and TRUE are represented ( in php) as
FALSE : 0
TRUE: everything else.
So to write "0" is the easiest way to enter something that is always FALSE. You could have written "ABC" == "XYZ" as well.
Joffm
This is not an option, this is the definition.I didn't know about the 0 relevance equation option.
The two boolean values FALSE and TRUE are represented ( in php) as
FALSE : 0
TRUE: everything else.
So to write "0" is the easiest way to enter something that is always FALSE. You could have written "ABC" == "XYZ" as well.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.