i would like to let some questions appearing in an array. The
workaround
in the Manual is very good but the Javascript-code doesn't set it up in the way i want it. Then the code is taking in all the next following questions in the change, while i just want to put only 2 or 3 questions in the same array. Is there a way to modify the code, so that it would take only a specific number of questions and not influence the following ones? Thanks.
I tried to manipulate the code without success (despite of a quick Java Tutorial). I certainly need a hint on this.
Here is a
LINK
to the survey i'm working on.
For example, i just want the two first questions to be displayed in an array. And the following others normally.
Last edit: 9 years 4 months ago by Stan. Reason: Complete information
Off-topic: Seeing your example, I am not even sure why you want these two questions in an array. They don't really have anything to do one with the other (e.g. the same subquestion per line). These are actually two separate questions and I personally would treat and display them as such.
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.
I do have another question.
The next following question is looking like this - And i want questions 1 and 2 to look like above in an array.
So i simply inserted the whole code in the question "1" (it's actually the 7th question in my survey:
Code:
sideBySide(1,2,7);
and the result is this:
The questions "1" and "2" are joining the array above. While i want them to stay at their place. In other words, i would like to have the array above two times (or more when necessary) in the survey at different places. Because these questions will be asked very often.
How can we make that happen?
That workaround was not intended to be used more than once on a page and, if all you want to do is align various sets of two questions side-by-side, I think it may be overkill anyway.
Can you attach a small sample survey containing only that group?
Cheers,
Tony Partner Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
To help you Tpartner will probalby need that you export a sample survey (containing only the part in question). He can't work on your survey, and it is a bit much to ask of him to rebuild the survey to help you.
Help him/us to help you.
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.