Welcome to the LimeSurvey Community Forum

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

Generate Dynamic Array Questions with subquestions based on Multiple Select

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago #230308 by Armitage2k
Hi everyone,

I would need some advice on how to best approach the following scenario with Limesurvey please.
I need to create a survey to collect feedback on a restaurant experience, covering around 30 outlets. Generally, each outlet the survey participant wishes to give feedback on should contain the following array questions:

Array: 10pts
Questions:
  1. Overall <outlet_name> Experience
  2. Friendliness of Staff
  3. Food Quality
  4. Menu Variety
  5. Beverage Selection

Now, the crux of the matter is this: because I have 30 outlets, I do not want to copy/paste 30 times the above array question and then have the participant go through the full list and fill in the feedback for the 3-4 outlets he visited. Rather, I was thinking to have a separate question group with a multiple select dropdown field asking "Select the outlets you have visited". Based on this selection, I would then like to generate a new question group with the above questions for each outlet, essentially having a dynamic number of 10-point-array questions for the selected outlets.

Is this a good way to approach this scenario? The is the least intrusive I can think of, especially since I do not want the participant having to go through an arduously long survey.

Appreciate any comments on whether the above is actually possible or how else you wizards would approach this.

Thanks!

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago #230310 by holch
First of all, I find "multiple select dropdown field" the possibly worst question type that exists in terms of usability for respondents, which gets even worse when considering mobile devices. I would use a "normal" multiple select question with normal checkboxes.

With the rest I agree. However, as Limesurvey has no loop feature, you probably will have to copy the group of arrays 29 times to create a separate group for each of the outlets. You could think of creating less and pipe in the name of the chosen outlets from the multiple select question, but I think this makes it unnecessarily difficult in terms of programming and also in terms of analysis. With separate question groups per outlet you always have the evaluations of the same outlet together. Makes it a lot easier for analyzing data I think.

Of course you will only show those questions groups of the outlets they have chosen in the multiple select question. You can do this via relevance equation in the question group.

And for copying the question group: You can create one question group, then export it and import it again 29 times. Should be fairly quick.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago #230311 by holch
Oh, I just noticed these are NOT question groups with 5 questions, but rather just one array question per outlet, with 5 subquestions.

Then it is even easier. The LS interface allows you to copy questions. You just need to change the outlet name and adapt the relevance equation based on the subquestion code for the specific outlet in the multiple select question.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • Armitage2k
  • Armitage2k's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago #230316 by Armitage2k
Thank you, this makes all perfect sense.

I fiddled around with this for a second and created a multiple choice checkbox question in group 1, and then in group 2 created several of those array questions specified to the relevant outlets. I tried to show / hide those array questions via G1Q0X_SQ00X == '1' , but cant get the question to show.

So if my checkbox question has code G10Q26 with the first checkbox being SQ001, then the condition for the array question should be G10Q26_SQ001 == '1', correct?

Thanks a lot!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago - 2 years 11 months ago #230317 by Joffm
No, this is not correct.
Did you follow my advice and activated the survey?
You will see that a multiple question has a different way to store the values

Joffm 

It is always a good idea to send a lss Export of the survey.
We see what is your goal, we see your mistakes, we can advise improvements.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 11 months ago by Joffm.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago #230320 by tpartner
Code:
G10Q26_SQ001 == 'Y'

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.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose