Welcome to the LimeSurvey Community Forum

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

Repeat group of questions

  • carlesb
  • carlesb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #139367 by carlesb
Repeat group of questions was created by carlesb
Acording to a certain question, i.e. number of kids in the family
Ask for each one name, age and hobbies
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 months ago - 7 years 9 months ago #139376 by tpartner
Replied by tpartner on topic Repeat group of questions
This has been asked many times in the forums. There is no "looping" in LimeSurvey.

You will first need to insert a question asking how many people. Then you add as many question groups as the maximum possible people and use conditions/relevance to show the groups depending on the answer to the "how many" question.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 years 9 months ago by tpartner.
The following user(s) said Thank You: carlesb
The topic has been locked.
  • carlesb
  • carlesb's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #139387 by carlesb
Replied by carlesb on topic Repeat group of questions
Thanks, but then, how to use conditions/relevance to do that?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 months ago #139393 by tpartner
Replied by tpartner on topic Repeat group of questions
Place relevance on the groups - manual.limesurvey.org/Creating_a_questio...groups_conditionally .

So, for example, the relevance for the first group would be "Q1 > 0", the second group "Q1 > 1" and so on.


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 months ago #139473 by Joffm
Replied by Joffm on topic Repeat group of questions
Hi, carlesb,

there is a good example for that in one of the demo surveys.
Exactly the problem: "How many childs" -> How old is your 1. child? - "How old is your 2. child?"

These example surveys you find in the folder "docs/demosurveys"

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose