condition on array sub questions

More
3 years 10 months ago #102403 by Andrea01
Andrea01 created the topic: condition on array sub questions
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

Please Log in to join the conversation.

More
3 years 10 months ago #102409 by tpartner
tpartner replied the topic: condition on array sub questions
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.

Please Log in to join the conversation.

More
3 years 10 months ago #102430 by Andrea01
Andrea01 replied the topic: condition on array sub questions
Thank you. However, this works if question are orderd Group by Group, I have question by question.

Regards
Andrea

Please Log in to join the conversation.

More
3 years 10 months ago #102434 by tpartner
tpartner replied the topic: condition on array sub questions
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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now