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
  • tixeon's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 5 days ago #195717 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

File Attachment:

File Name: limesurvey...6616.lss
File Size:28 KB
.

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
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #195719 by Joffm
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?

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tixeon
  • tixeon's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 days ago #195763 by tixeon
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.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 days ago #195764 by Joffm
Hi,

I didn't know about the 0 relevance equation option.

This is not an option, this is the definition.
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.

Lime-years ahead

Online-surveys for every purse and purpose