Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Filter Array questions with sub-questions ?

Filter Array questions with sub-questions ? 1 Jahr 5 Monate her #87848

  • sans
  • sanss Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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 ?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Filter Array questions with sub-questions ? 1 Jahr 5 Monate her #87864

  • Mazi
  • Mazis Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 5278
  • Dank erhalten: 289
  • Karma: 246
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'"
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Filter Array questions with sub-questions ? 1 Jahr 5 Monate her #87869

  • sans
  • sanss Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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 ????
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Filter Array questions with sub-questions ? 1 Jahr 5 Monate her #87897

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 5838
  • Dank erhalten: 714
  • Karma: 222
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.130 Sekunden
Donation Image