Welcome, Guest
Username: Password: Remember me

TOPIC: condition on array sub questions

condition on array sub questions 11 months 2 weeks ago #102403

  • Andrea
  • Andrea's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Karma: 0
I have ploughed through the Forum, but the postings I found are over 1 year old. So I thought there is a solution meanwhile:

Array1

How much do you like:

apple 1 2 3 4
pear 1 2 3 4
banana 1 2 3 4

Array 2
Which do you consider healthy
apple very littel not at all
pear very littel not at all
banana very littel not at all

Subquestions (itmes) for Array2 should only appear if answer on Array1 was 1 or 2.

Is there any possibility to solve this?

Thank you in advance

Andrea
The administrator has disabled public write access.

condition on array sub questions 11 months 2 weeks ago #102409

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4371
  • Thank you received: 829
  • Karma: 381
Here is a post that may give some insights into using JavaScript for column-specific array filtering - www.limesurvey.org/en/forum/can-i-do-thi...-another-array#91998
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

condition on array sub questions 11 months 2 weeks ago #102430

  • Andrea
  • Andrea's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 33
  • Karma: 0
Thank you. However, this works if question are orderd Group by Group, I have question by question.

Regards
Andrea
The administrator has disabled public write access.

condition on array sub questions 11 months 2 weeks ago #102434

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4371
  • Thank you received: 829
  • Karma: 381
In that case I don't know of any JavaScript workarounds.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.137 seconds
Donation Image