Check out the LimeSurvey source code on GitHub!

condition on array sub questions

More
3 years 1 month ago #102403 by Andrea01
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 1 month ago #102409 by tpartner
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 1 month ago #102430 by Andrea01
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 1 month ago #102434 by tpartner
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.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form