TOPIC: Need help with nested question, or another way to do it

Need help with nested question, or another way to do it
5 years 8 months ago #58380

I have a problem I can't solve myself, so I'm hoping some of you experts can!

The situtation:

The first question asks them to pick one or more (X) items from a list of say, 5 items.

The second question will be repeated X times, depending on the number of itmes they have chosen. This question is the same for all items, besides the fact that they are possible to link back to each respective item in the result.

Question:
Can this be done without copying the 2nd question 5 times in the survey, but instead having one question repeat X times?

The reason I'm asking is that the 2nd question have a LOT of parameters, which will result in a report with a lot of columns (about 9x80=720 columns). On top of that, an array will produce a very cluttered interface if I just included all the items as columns in the 2nd question. The best option is if they could concentrate on one item at a time.

Thanks!

The administrator has disabled public write access.

JavaScript is currently disabled.Please enable it for a better experience of Jumi.

Need help with nested question, or another way to do it
5 years 8 months ago #58383

Hi Akvik, I didn't quite get what the problem is with the many parameters, could you give an example, eg. an example of both questions?

As far as I know, there is no possibility to repeat the same question various times according to the number chosen in the question before.

On the other hand, the problem with the columns you will have always, because no matter whether you repeat the same question or not, you will need to write each answer into the database seperatly, otherwise you would overwrite the first response, which makes little sense. but maybe I just got the problem wrong.

My solution would be to have the second question as many times as they could choose the first question and then hide and show the question via conditions.

But then, this might not be possible due to the question structure you were mentioning and I didn't understand so far...

Have a look at the manual! It is a really valuable source for information. Here some helpful links:Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]
If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...

The administrator has disabled public write access.

Need help with nested question, or another way to do it
5 years 8 months ago #58386

I understand the confusion -- It's difficult to explain and maybe I'm getting it wrong, too. My aim is to avoid getting the result data stacked in columns but instead in rows - also it's good database practice to not duplicate when it's not necessary.

I made a survey using the setup you suggest, and it works, but it is not so practical, and can potentially create a data set that is very "wide" -- an example:

The solution would have been a simple array set if it weren't for my need to only have them fill out the sets of their selected Xs.

I'll make an attempt to exemplify it in a hands-on analogy:
You have 10 cars and you want the customers to express what they think about them with 100 questions for each car. The 100 questions are the same for all cars. Only thing is that they have all tried different cars, so you have them choose which ones they tried. Some tried one, others tried 7, or all of them.

I want to make a survey like this where the customers doesn't have to deal with the cars they haven't tried. This also without creating 10x100 of the same questions, leading to 1000 columns in the result data.
I want them to select the cars, and for each car go through the same questions, one car at the time. The result data would be 100 columns wide, with the car tag as the only difference (101 columns to be exact).

Need help with nested question, or another way to do it
5 years 8 months ago #58387

I don't think that you will be able to fit this into the data base as you want. And all research tools that I know handle this similar.

Usually responses to all questions are written into the same table of the database anyway, and most tools for analysis can only use this kind of table to analyse (e.g. SPSS).

The questionnaire tools that I know have the responses in columns and the interviews/repondents in rows.

Have a look at the manual! It is a really valuable source for information. Here some helpful links:Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]
If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...

The administrator has disabled public write access.

Need help with nested question, or another way to do it
5 years 8 months ago #58395

I want them to select the cars, and for each car go through the same questions, one car at the time. The result data would be 100 columns wide, with the car tag as the only difference (101 columns to be exact).

It will be possible with ONE car, but i a repondant answer for 3 cars, then you have to separate the answer for this 3 cars. Same for 10 cars, 20 cars etc ....

You can't have only one column for different answer.
If you choose 1 car (the best for example)
Then you can have one array with the BEST car choosen.

You can use, for example, a ranking question with MAX 5 answer, then use the INSERTANS to put the name of choosen car in the answer.

After you have something like you want, but you hav to manually edit the data to find answer for each car.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).