Jumping back to prior questiongroup

More
4 years 6 months ago #93141 by ait-hbs
ait-hbs created the topic: Jumping back to prior questiongroup
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

Please Log in to join the conversation.

More
4 years 6 months ago #93146 by bdg
bdg replied the 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

Please Log in to join the conversation.

More
4 years 6 months ago #93219 by tpartner
tpartner replied the 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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now