Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Ask randomly from a multiple question

  • Mon2016
  • Mon2016's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 9 months ago #242846 by Mon2016
Ask randomly from a multiple question was created by Mon2016
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
(Write here your question/remark)

Hello dear forum.

I tell you that I am conducting a survey but I have gotten a little stuck on a question that I would really like to know if someone has the solution.

I have a multiple answer question asking what categories do you buy? that is to say...


Q25. What categories do you usually buy?
1. Cookies
2. Refreshments
3. Snacks
4. Clothes
5. Footwear

In the second part of this question I must show those categories that you selected in Q25, that is...

Q25a01. What brands of COOKIES do you buy?
Q25a02. What brands of SOFT DRINKS do you buy?
Q25a03. What brands of SNACKS do you buy?
Q25a04. What brands of CLOTHING do you buy?
Q25a05. What brands of FOOTWEAR do you buy?

So far so good, but it turns out that I have to show only 3 random categories of those mentioned in Q25, that is... if in Q25 you selected:
1. Cookies
2. Refreshments
3. Snacks
4. Clothes
5. Footwear

Of the 5 I only have to show 3 at random, if you selected only 2, only 2 I have to show, if you select 3 only those 3.

I hope someone can understand what I'm looking for and can help me.

We are using Version 3.25.10+210128
I also share a test survey to make it easier to understand.

I thank you in advance for all the support.

Regards <3

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 9 months ago #242849 by Joffm
Replied by Joffm on topic Ask randomly from a multiple question
Hi,
here I show a solution without javascript, only ExpressionScript.
 

File Attachment:

File Name: limesurvey...3822.lss
File Size:229 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose