Welcome to the LimeSurvey Community Forum

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

Repeating a group of questions based on previous multiple choice selections

  • JD_2012
  • JD_2012's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #193145 by JD_2012
Am looking to collect some data pertaining to injury characteristics for various body parts. I have a multiple choice question set up where respondents can select the injury location/s. I then have a pre-defined set group of questions that I want to be asked for each site. Is it possible to set up a group-level relevance equation that will repeat this group of questions for each site that has been selected by the respondent?

Thanks in advance if anyone can assist.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago #193146 by Joffm
Hi,
unfortunately LimeSurvey still does not support loops.
Though there are some feature requests about it.

You have to create as many groups as there are locations in your multiple choice questoon.
Then you use group relevance to display only the selected ones.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • JD_2012
  • JD_2012's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #193147 by JD_2012
Thanks so much for your reply! I see, that seems like a viable option still. Would you by any chance have any similar group relevance equations that I could use to get an idea of how to do this?

Thanks again for your help, it is greatly appreciated!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago #193149 by Joffm
Hi,
the group relevance equation is "was the subquestion in the multiple question was checked".
group1: subquestion1 is checked
group2: subquestion2 is checked
...


Two links to the manual:
manual.limesurvey.org/Expression_Manager...roup-level_Relevance

manual.limesurvey.org/Expression_Manager...#Access_to_variables

And I always recommend to activate the survey, enter some well defined data.
Then you see in the answer table the relevant question code and the way the answer is coded in LimeSurvey.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose