Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Array Filter use

Array Filter use 5 years 8 months ago #58662

  • jenllip
  • jenllip's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Hello all!

I may just be having a brain fart, but the Array Filter option doesn't seem to be working as expected and I can't squeeze any more answers out of the documentation in the wiki.

I have Q1 set up as a 'multiple option.'

I copied Q1 to Q2 (so all answers and codes are the same), and changed it to an 'array (flexible labels)' type with the Array Filter set to Q1.

...and nothing happens. Q2 appears blank regardless of what is checked/unchecked in Q1. Am I not properly formatting the question code in the array filter box? Do Q1 and Q2 need to be on separate pages? Do I need to set up a JS listener to listen to what's marked in Q1 in order to update what shows in Q2?

Many thanks,

Jen
The administrator has disabled public write access.

Array Filter use 5 years 8 months ago #58746

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6027
  • Thank you received: 373
  • Karma: 260
1. Which Limesurvey version do you use?

2. Do you use array text as second question type?

There have just been some fixes recently, maybe you can test the current SVN version if the problem still exists?!

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.

Array Filter use 5 years 8 months ago #58766

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6567
  • Thank you received: 1477
  • Karma: 579
What have you placed in the Array filter box of Q2? It needs to be the question code of Q1, not the question ID.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Array Filter use 5 years 8 months ago #58792

  • jenllip
  • jenllip's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Tony, you're a genius. Thanks!!!
The administrator has disabled public write access.

Array Filter use 5 years 8 months ago #58793

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6567
  • Thank you received: 1477
  • Karma: 579
Aw, shucks...:blush:
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Array Filter use 5 years 8 months ago #58795

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5417
  • Thank you received: 806
  • Karma: 239
I think it is quite confusing that for many things you need to use the question ID and for others the question code.

Seems quite random to me. Is there any good reason for this?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.
Time to create page: 0.287 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form