Welcome to the LimeSurvey Community Forum

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

Jumping back to prior questiongroup

  • ait-hbs
  • ait-hbs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #93141 by ait-hbs
Jumping back to prior questiongroup was created by ait-hbs
Hello!
May I ask you for your help:
I have a questionnaire and within this there is a part consisting of 4 different areas.
The users should have the possibility to answer 1 to 4 of these areas depending on amount of time and interest they have.
So it looks like:

Group1
Group2
GroupSelectArea
Area 1
Area 2
Area 3
Area 4
GroupSelectAnotherArea_or_continue
Group finish

The GroupSelectArea works fine, that only 1 area is shown (with relevance Question in Area1,2,3,4 what was selected in GroupGroupSelectionArea)
BUT:
how can I realize the GroupSelectAnotherArea_or_continue
Within there, the areas that have not been selected by now should be selectable
And then there should be a jump back to the area
filling in the Area again, followed by GroupselectionAnotherArea again:
Until "No more area" was selected and the finish group is displayed.

I really would be happy if you could help me, as I the deadline for a reasearch project is coming closer and closer!
thanks in advance
Gogl
The topic has been locked.
More
11 years 3 weeks ago #93146 by bdg
Replied by bdg on topic Jumping back to prior questiongroup
You could do this the old way, by exporting and then importing the Area 1-4 group four times and separating each iteration with a GroupSelectAnotherArea_or_continue. So you get something like:

GroupSelectArea
Area 1 1
Area 1 2
Area 1 3
Area 1 4
GroupSelectAnotherArea_or_continue 1
Area 2 1 (if GroupSelectAnotherArea_or_continue 1 == Area 2 1)
Area 2 2 (if GroupSelectAnotherArea_or_continue 1 == Area 2 2)
Area 2 3 (if GroupSelectAnotherArea_or_continue 1 == Area 2 3)
Area 2 4 (if GroupSelectAnotherArea_or_continue 1 == Area 2 4)
GroupSelectAnotherArea_or_continue 2 (if GroupSelectAnotherArea_or_continue 1 != continue)
...
...

I think LS2 has a loop question attribute, but I have never used this. Maybe someone else can advise. Here is the documentation: docs.limesurvey.org/LimeSurvey+2+question+types#Loop_marker
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 3 weeks ago #93219 by tpartner
Replied by tpartner on topic Jumping back to prior questiongroup
Holch's solution with multiple groups shown conditionally is the correct approach.

There is no "looping" in LS2. That wiki page is very old and refers to the original LS2 development which was scrapped years ago.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose