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

TOPIC: Conditional Arrays

Conditional Arrays 5 years 2 months ago #65732

Hello! First post, so I apologize if this has been hashed out already. I searched, but there's a good chance this is phrased differently.

I have a survey question (array) that asks people to rate a series of articles in a magazine based on whether they were "read thoroughly," "read somewhat" or "skipped over."

For the items that a respondent has "read thoroughly" I would like to ask a follow-up question in an array as to whether the item was "thoroughly interesting," "somewhat interesting" or "not interesting."

My first choice would be to have this in another array, but I don't see a way in which I can set conditions for individual subquestions. Is that right?

In the meantime, I'm going to set it up where each of the follow-ups is an individual question with three potential answers. These will each appear on the subsequent page using conditions to show or hide.

Let me know if anybody with more experience on this platform can suggest a more intuitive method.

The administrator has disabled public write access.

Conditional Arrays 5 years 2 months ago #65734

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
There are several workarounds to filter an array by the responses of another array here - The thread gets a little convoluted but should have what you need.
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.

Conditional Arrays 5 years 2 months ago #65842

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
One solution - probably also mentioned either at the forum or at manual -> workarounds ->JavaScript - would be to use a hidden multiple choice question with the same answer options and use some Javascript to connect the previous rating question with that MC question. Each time the user clicks "read thoroughly" the according item at the MC question would be checked.
Afterwards you can use the array filter question attribute to only list those items at the following question which were previously rated "read thoroughly".

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)'"
The administrator has disabled public write access.
Time to create page: 0.205 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form