- Posts: 58
- Thank you received: 9
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
ARRAY QUESTION: NUMBER OF ROWS CALCULATED ACCORDING TO A PREVIOUS QUESTION
- eloner
- Topic Author
- Offline
- Senior Member
Less
More
8 years 4 months ago #128948
by eloner
ARRAY QUESTION: NUMBER OF ROWS CALCULATED ACCORDING TO A PREVIOUS QUESTION was created by eloner
Hello,
I am working on LS version 2.06+ Build 151109.
I have a survey with two questions (shown in the same group):
- in the first (q1, single numerical input) I ask the respondent when (month and year) his/her condition changed ("When did you last you job?"). The month + year are saved together (e.g. "November 2014") as a label set.
- in the second question (q2, array numbers) I want to know her/his condition (if he was working, studying, unable to work or looking for a new job) for every month from the date she/he changed condition (or, eventually, from the month before the changement).
So, if the condition changed in february2015 (q1), I would like to show an array (q2) with just febraruary2015, march 2015 ... till december 2015 but not november and december 2014.
At the moment the survey looks like:
I also attach the .lss file:
I suppose I should work out on javascript as in this previous post:
www.limesurvey.org/en/community-services...ious-numerical-input
... but I can't think of how I should change the script to adapt it to my survey.
Any help is welcome!
Elo
I am working on LS version 2.06+ Build 151109.
I have a survey with two questions (shown in the same group):
- in the first (q1, single numerical input) I ask the respondent when (month and year) his/her condition changed ("When did you last you job?"). The month + year are saved together (e.g. "November 2014") as a label set.
- in the second question (q2, array numbers) I want to know her/his condition (if he was working, studying, unable to work or looking for a new job) for every month from the date she/he changed condition (or, eventually, from the month before the changement).
So, if the condition changed in february2015 (q1), I would like to show an array (q2) with just febraruary2015, march 2015 ... till december 2015 but not november and december 2014.
At the moment the survey looks like:
I also attach the .lss file:
I suppose I should work out on javascript as in this previous post:
www.limesurvey.org/en/community-services...ious-numerical-input
... but I can't think of how I should change the script to adapt it to my survey.
Any help is welcome!
Elo
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
8 years 4 months ago - 8 years 4 months ago #128953
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic ARRAY QUESTION: NUMBER OF ROWS CALCULATED ACCORDING TO A PREVIOUS QUESTION
LimeSurvey 2.06 supports relevance for array subquestions. See screenshots below and a revised survey attached.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last edit: 8 years 4 months ago by tpartner.
The following user(s) said Thank You: eloner
The topic has been locked.
- eloner
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 58
- Thank you received: 9
8 years 4 months ago #128957
by eloner
Replied by eloner on topic ARRAY QUESTION: NUMBER OF ROWS CALCULATED ACCORDING TO A PREVIOUS QUESTION
Thank you Tony,
this is really a great improvement for LimeSurvey, so we can easily control for the question al the level of each single row!
Cheers,
Elo
this is really a great improvement for LimeSurvey, so we can easily control for the question al the level of each single row!
Cheers,
Elo
The topic has been locked.