Welcome to the LimeSurvey Community Forum

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

Using answers from an array to populate another question

More
10 years 11 months ago #122015 by CommCulture
Hi,

I hope someone can help me.

I have an array question and based on the answers they give I want a multi question to display specific subquestions.

For example,

My array questions is:

How frequently do you use the following?

Answer options:
Use frequently, use occasionally, used before but not now, considered but not used, heard of but not considered

Subquestions:
Brand 1
Brand 2
Brand 3

For those that select Use frequently or use occasionally I want a multi to display these brands. For example, if someone selected use frequently brand 1 and brand 2, but not used brand 3 I would want the multi to only display Brand 1 and Brand 2 (not brand 3 because use frequently or use occasionally was not selected in the array above).

Any help would be greatly appreciated.

Many thanks.
The topic has been locked.
More
10 years 11 months ago #122022 by tpartner
In version 2.06, you can set relevance on sub-questions. In 2.05, you will need to use a workaround like this - www.limesurvey.org/en/forum/can-i-do-thi...estion-result#112088

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: CommCulture
The topic has been locked.
More
10 years 11 months ago #122033 by CommCulture
Thank for getting back to me!

I have just updated limesurveys to the latest version so hopefully this will make it easier!

Thanks again!
The topic has been locked.
More
10 years 11 months ago #122034 by CommCulture
Once again thank you for your help in advance.

I am struggling to find how I set relevance on sub-questions to make my multi filter based on the responses given within an array. Any advice would be greatly appreciated.

Many thanks
The topic has been locked.
More
10 years 11 months ago #122039 by CommCulture
I just wanted to send a demo to explain what is needed - hopefully this will help. Like I mentioned earlier I have updated to the latest version of Limesurveys so hopefully I can just set relevance on sub-questions now. However I have been searching around and struggling to understand how I do this.

If you click on the link below:

research.online-communities.org/index.php/511465?lang=en

This is what I need:

Q1 - an array questions
Q1a - a multi questions which needs to only display those brands which are used frequently / occasionally at Q1

Your help would be greatly appreciated.

Many thanks
The topic has been locked.
More
10 years 11 months ago #122040 by CommCulture
I've done it :-) So happy!!!

So to anyone else who needs it:

You need to go the answers you want to filter (so in my case it was Q1a - go to the subquestions - click on the R to open up the Relevance box and then insert the condition. So in my case I wanted brand 1 to only be displayed in Q1a if respondents chose the first or second option on the grid at Q1). So I inserted the following statement:

((Q1_1.NAOK == "1" or Q1_1.NAOK == "2"))

See screenshot



Hope that helps!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose