Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : Jumping back to prior questiongroup

Jumping back to prior questiongroup il y a 1 an 6 mois #93141

  • gogl
  • Portrait de gogl
  • Hors ligne
  • Fresh Lemon
  • Messages : 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
L'administrateur a désactivé l'accès en écriture pour le public.

Jumping back to prior questiongroup il y a 1 an 6 mois #93146

  • bdg
  • Portrait de bdg
  • Hors ligne
  • Fresh Lemon
  • Messages : 6
  • Remerciements reçus 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
L'administrateur a désactivé l'accès en écriture pour le public.

Jumping back to prior questiongroup il y a 1 an 6 mois #93219

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4192
  • Remerciements reçus 788
  • Karma: 359
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.
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.136 secondes
Donation Image