Welcome, Guest
Username: Password: Remember me

TOPIC: Using Array Filter : Am I doing it right?

Using Array Filter : Am I doing it right? 2 years 2 months ago #83910

  • utsi
  • utsi's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 25
  • Thank you received: 1
  • Karma: -2
This is what I want to achieve:
  • Question 1: User chooses answers from a set of multiple choice options (Mon, Tue, Wed, Thur, Fri, Sat, Sun) // Tue, Wed, Sat checked by user

  • Question 2: Show only those answers which were selected in 'Question 1' (Tue, Wed, Sat)

This is what I'm doing:
  • Question 1 'Code' is Q1
  • I added seven multiple choice options ranging from 'Mon' to 'Sun'
  • Saved the question

  • Question 2 'Code is Q2
  • Under 'Advanced Settings', I put in 'Q1' for 'Array Filter' field
  • I added same seven multiple choice options ranging from 'Mon' to 'Sun'
  • Saved the question


But on running the survey, only the options selected in Q1 are not showing up in Q2. All options are visible in Q2

Am I missing something?

Thanks,
Safdar
Last Edit: 2 years 2 months ago by utsi.
The administrator has disabled public write access.

Re: Using Array Filter : Am I doing it right? 2 years 2 months ago #83913

  • utsi
  • utsi's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 25
  • Thank you received: 1
  • Karma: -2
Argh! I don't know why this happens. But soon after I post here, I somehow manage to find the solution myself. I was using wrong subquestion code in Q2.
The administrator has disabled public write access.

Re: Using Array Filter : Am I doing it right? 2 years 2 months ago #83919

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
Common mistake. When using Array Filter the question code has to be correctly entered at the advanced question settings of the following question AND all the question codes need to be similar.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.141 seconds
Donation Image