use as answers previous SELECTED answers

More
5 years 2 months ago #77060 by dcordova
dcordova created the topic: use as answers previous SELECTED answers
Hi

I have a doubt... can I use answers responded on previous questions as answer of a new question?
For example:

P5. What kind of drinks you like?
Coke "selected as an answer"
Fanta
Sprite "selected as an answer"
Water
Juice "selected as an answer"
Alcoholic

P6. Wich one u like most?
Coke
Sprite
Juice

Hope you can clear my doubt!

Thanks!

BTW: I'm using Limesurvey 1.92 + Build 120311

Please Log in to join the conversation.

More
5 years 2 months ago #77066 by tpartner
tpartner replied the topic: use as answers previous SELECTED answers
Sure, look at the array filter setting for the list-radio question type - docs.limesurvey.org/Question+type+-+List...eSurvey#Array_filter

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
5 years 2 months ago #77068 by dcordova
dcordova replied the topic: use as answers previous SELECTED answers
Thanks for answering! but i see it works for list radio question type... and i need multiple choice question type

Please Log in to join the conversation.

More
5 years 2 months ago #77069 by dcordova
dcordova replied the topic: use as answers previous SELECTED answers
Ans also i need to use this in P7, P8, P9, P10

Please Log in to join the conversation.

More
5 years 2 months ago #77072 by dcordova
dcordova replied the topic: use as answers previous SELECTED answers
I'm such a dumbass!!! sorry Freshlemon!! I looked at the multiple choice advanced setting and it has a Array Filter too!

Thanks for your help! u saved my day!

Please Log in to join the conversation.

More
5 years 2 months ago #77075 by dcordova
dcordova replied the topic: use as answers previous SELECTED answers
One more question, is there a way to cascade previous selected answers?

For example

P1 Wich Brands is ur favourite

Coke "selected and answer"
Fanta
Sprite
GingerAle
BigCola

P2 wich brands do you usually drink

Fanta "selected and answer"
Sprite
GingerAle "selected and answer"
BigCola

P3 Wich one has a funnier comercial?
Coke "previously selected form P1"
Fanta "previously selected form P2"
GingerAle "previously selected form P2"

Thanks a lot!

Please Log in to join the conversation.

More
5 years 2 months ago #77079 by tpartner
tpartner replied the topic: use as answers previous SELECTED answers
I don't think that's possible using the array filter. You will need to use JavaScript and possibly some hidden questions to achieve it.

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
5 years 2 months ago #77091 by TMSWhite
TMSWhite replied the topic: use as answers previous SELECTED answers
dcordova and tpartner

Cascading array filters work perfectly in 1.92. There is a Demo of this at /docs/demosurveys/ls2_cascading_array_filter.lss

However, by cascading, we mean progressively filtering a set of lists. You're talking about ORing together two array filters in P3. You'd need custom JavaScript for that.

Please Log in to join the conversation.

More
5 years 2 months ago #77092 by tpartner
tpartner replied the topic: use as answers previous SELECTED answers
Yes, that's what I was referring to - having a question filtered by the selected responses from 2 or more previous question. Not really cascading...

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
5 years 2 months ago #77103 by dcordova
dcordova replied the topic: use as answers previous SELECTED answers
Thanks for the help guys! I really appreciate it!

Please Log in to join the conversation.

More
5 years 2 months ago #77201 by Steve01
Steve01 replied the topic: Aw: use as answers previous SELECTED answers
You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now