Welcome, Guest
Username: Password: Remember me

TOPIC: Looping - Repeating parts of a survey

Looping - Repeating parts of a survey 6 months 3 weeks ago #106759

  • locuviche
  • locuviche's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Hi fellows,
this is my first time with this wonderful tool and I have realized that I do not know how to loop a survey.
I would like to repeat a specific segment of the survey, regarding an answer ("how many countries you know").
The survey should repeat a set of questions related to each travel so many times as the number entered previously by the polled. Does anyone know how can I do that?
Thanks to all the LimeSurvey community!
The administrator has disabled public write access.

Looping - Repeating parts of a survey 6 months 3 weeks ago #106760

  • holch
  • holch's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 2820
  • Thank you received: 353
  • Karma: 121
Limesurvey does not have a looping feature out of the box. So you will have to do some workaround. Here some points to start:

manual.limesurvey.org/Workarounds:_Surve...Loop_question.28s.29

manual.limesurvey.org/Expression_Manager#Group-Level_Relevance

Basically the same approach. You will probably have to create as many copies of the question / question group as there could be maximum loops...
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: locuviche

Looping - Repeating parts of a survey 6 months 3 weeks ago #106797

  • locuviche
  • locuviche's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Sorry, I didn't get you well. The first link does not work, could you post it again?
Do you suggest, I should repeat the group so many times as I expect it at most?
The administrator has disabled public write access.

Looping - Repeating parts of a survey 6 months 3 weeks ago #106806

  • holch
  • holch's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 2820
  • Thank you received: 353
  • Karma: 121
Just tested it and the first link works just fine. You need to click it in the forum, not in the email you receive. There it won't work as it is shortened.

The solution is to create as many questions / question groups as you expect to have loops (maximum). E.g. if you ask about the children in the household I guess a good compromise between making sure that all familes can enter all family members and the work to copy the questions would be in the western world 10 repetitions I guess.

Then you either ask at the beginning "how man children do you have" and then show the respective number of questions via conditions, or you add the question "would you like to insert another child" to the end of each question group (loop) and if yes you show the next copy of the question group, if no you finish the loop.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: locuviche

Looping - Repeating parts of a survey 6 months 3 weeks ago #106809

  • locuviche
  • locuviche's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
Just as imagine… Thanks anyway!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.134 seconds
Donation Image