Welcome, Guest
Username: Password: Remember me

TOPIC: Filter Array questions with sub-questions ?

Filter Array questions with sub-questions ? 1 year 11 months ago #87848

  • sans
  • sans's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hi,
I'm struggling with my survey.

I would like to filter an array question to another array question, and it's not working ...

I have Q1, which is an array question with 5 sub-questions and 4 response options (A1, A2, A3, A4).
Q2, which in another array question with the same identical 5 sub--questions as Q1.

I would like to show in Q2, only Q1 sub-questions with responses A1 or A2.

How can I do that ?
The administrator has disabled public write access.

Re: Filter Array questions with sub-questions ? 1 year 11 months ago #87864

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
Array filter doesn't work this way. It can check wheter a certain item was picked at the previous question but it can't yet checked the rating of a certain sub-question.

You would need to split up your following question and then use conditions to show these once the previous subquestion has received a certain rating.

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.

Re: Filter Array questions with sub-questions ? 1 year 11 months ago #87869

  • sans
  • sans's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
Hep again,

SOrry I didn't explain my problem exactly ;-)

Q1 is arrow-type question with 5 sub-questions and 4 response options (a1, A2, A3, A4).

I would like through filter be able to display in Q2 (arrow-type question) only Q1 sub-questions with A1 or A2 response.

I tried to do that with the advance settings options. IN Q2, I put in arrow filter field : Q1.code=="A1/A2" but it doesn^t work

Any idea ????
The administrator has disabled public write access.

Re: Filter Array questions with sub-questions ? 1 year 11 months ago #87897

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
Mazi already answer "array_filter" only test if sub question is checked or not.

You have 2 solution:
- Move Q2 in more question (Q2a,Q2b,Q2c ..) and assign condition on each Q2 questions
- Make a javascript workaround to hide the line

Denis
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.101 seconds
Donation Image