Welcome, Guest
Username: Password: Remember me

TOPIC: Jumping back to prior questiongroup

Jumping back to prior questiongroup 1 year 1 month ago #93141

  • gogl
  • gogl's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
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 administrator has disabled public write access.

Jumping back to prior questiongroup 1 year 1 month ago #93146

  • bdg
  • bdg's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Thank you received: 2
  • Karma: 0
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 administrator has disabled public write access.

Jumping back to prior questiongroup 1 year 1 month ago #93219

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3813
  • Thank you received: 683
  • Karma: 328
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.099 seconds
Donation Image