Welcome to the LimeSurvey Community Forum

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

Multiple years, multiple groups

More
8 years 7 months ago #133377 by endri
Multiple years, multiple groups was created by endri
Hi,
Already 2 weeks and still struggling in this problem.

Responders have to fill ValueA and ValueB for several years 2011-2016 for all groups

For every years the question is same:

ValueA Value B
Group 1

Group 2

Group 3

Group 4

Except this maybe responder knows some other groups and want to add data for them.
1. Need to ask user about other groups he knows except the mentioned Group1..Group4. He has to enter names for this groups like Group5, Group6
2.Based on answer need to create dynamic array with rownames Group1, Group2, Group3, Group4, Group5, Group6
3. This array has to be filled 6 times: for year 2011,2012...2016

Please help with some example because I read the manual several times but not getting some way out.
Regards
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #133405 by tpartner
Replied by tpartner on topic Multiple years, multiple groups
LimeSurvey version?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 7 months ago #133406 by endri
Replied by endri on topic Multiple years, multiple groups
Version 2.50+ Build 160206
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #133408 by tpartner
Replied by tpartner on topic Multiple years, multiple groups
1) Before the array, insert a multiple short text question for the respondent to enter the extra group names. Let's say, for example, that this question has code "Q1" and 5 sub-questions codes SQ001 - SQ005.

2) Insert 5 new Y-Scale sub-questions (rows) in the array after the "Group 4" row.

3) You can use Expression Manager to pipe the values entered in Q1 into the labels for the new array rows. So the sub-question text for those rows would be {Q1_SQ001}, {Q1_SQ002}, {Q1_SQ003}...

4) You can use relevance on the new array rows to only show them if there is a value in the corresponding input in Q1. So the relevance for them would be !is_empty(Q1_SQ001), !is_empty(Q1_SQ002), !is_empty(Q1_SQ003)...

Sample survey attached:

File Attachment:

File Name: limesurvey...4517.lss
File Size:24 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 7 months ago #133426 by endri
Replied by endri on topic Multiple years, multiple groups
Thank you tpartner,

I checked your example provided and it is very like the one I need.
I tried it and it adds one more row but cannot figure how to add more than one group if needed.
Is it possible?
Regards
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #133427 by tpartner
Replied by tpartner on topic Multiple years, multiple groups
The sample survey adds up to 5 additional groups.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 7 months ago #133432 by endri
Replied by endri on topic Multiple years, multiple groups
Ok but how?
When testing, I write Group 5 in text box and a row is added.
After that if I press enter that's it.
What about additional groups?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #133441 by tpartner
Replied by tpartner on topic Multiple years, multiple groups
Err...add "Group 6", etc in the other text inputs.


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 7 months ago #133443 by endri
Replied by endri on topic Multiple years, multiple groups
Sorry but I see only one text input as in image attached

Regards
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #133446 by tpartner
Replied by tpartner on topic Multiple years, multiple groups
Try updating to the latest version and retesting.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 7 months ago #133448 by endri
Replied by endri on topic Multiple years, multiple groups
Already updated still the same.
I saw something strange.
When I create a Multiple short text and try to enter 5 subquestions, I press "Insert new subquestion after this one".
Instead of another subquestion I get several New answer options like in the picture attached?
Whats wrong with this?
Regards
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #133455 by tpartner
Replied by tpartner on topic Multiple years, multiple groups
That appears to be correctly adding sub-questions, it's just that the "New answer option" text is wrong (a bug).

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose