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
  • eloner's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 4 months ago #128948 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:

File Attachment:

File Name: limesurvey...8213.lss
File Size:28 KB


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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 4 months ago - 8 years 4 months ago #128953 by tpartner
LimeSurvey 2.06 supports relevance for array subquestions. See screenshots below and a revised survey attached.





File Attachment:

File Name: limesurvey...8213.lss
File Size:28 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 4 months ago by tpartner.
The following user(s) said Thank You: eloner
The topic has been locked.
  • eloner
  • eloner's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 4 months ago #128957 by eloner
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
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose