Welcome to the LimeSurvey Community Forum

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

Generate a Series of Questions from a list

  • mutual.banana.sweet
  • mutual.banana.sweet's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago - 2 years 5 months ago #231145 by mutual.banana.sweet
Generate a Series of Questions from a list was created by mutual.banana.sweet
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.3.30+220808
==================
Let's say I have a list of sports eg. Swimming, cycling and running (my list is actually a lot longer)
For each of these sports I want to ask a series of questions:
1. Have you ever done <sport>?
2. When did you last do it?
3. Are you planning to do it this weekend?

Rather than going through and taking the time to make all of the questions for every sport (including all the logic) is it possible to do them all at once?

Eg in python I would do this:

sports = [...]
questions = list()

def make_questions_for_sport(sport):
   return <question>

for sport in sports:
   questions.append(make_question_for_sport(sport))


 
Last edit: 2 years 5 months ago by mutual.banana.sweet.

Please Log in to join the conversation.

More
2 years 5 months ago #231146 by jelo
LimeSurvey has no functionality around looping.
Feature request from 2016.
bugs.limesurvey.org/view.php?id=11687

You might can save some time to create the survey structure via a spreadsheet.
www.limesurvey.org/manual/Tab_Separated_Value_survey_structure

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • mutual.banana.sweet
  • mutual.banana.sweet's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 5 months ago #231148 by mutual.banana.sweet
Replied by mutual.banana.sweet on topic Generate a Series of Questions from a list
Oh that spreadsheet creator is a great idea, thanks! I didn't know that feature existed.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose