Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Jumping back to prior questiongroup

Jumping back to prior questiongroup 1 Jahr 6 Monate her #93141

  • gogl
  • gogls Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Jumping back to prior questiongroup 1 Jahr 6 Monate her #93146

  • bdg
  • bdgs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 6
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Jumping back to prior questiongroup 1 Jahr 5 Monate her #93219

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4141
  • Dank erhalten: 767
  • Karma: 349
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.137 Sekunden
Donation Image