Single Choice to be shown based on some filter

More
2 months 20 hours ago #203187 by scene143
Hi,

I have a single choice question like this.

Maruti
BMW
Hyundai
Honda
Audi

But client want to show Maruti and BMW only for US country. Can anyone help me how to hide those 2 codes for other countries?

Please Log in to join the conversation.

LimeSurvey Partners
More
2 months 19 hours ago - 2 months 19 hours ago #203188 by tpartner
There is no direct answer relevance for single choice questions so you have two options...

1) Create a separate question for the US.

2) Insert a hidden multiple-choice question. Toggle the checkboxes in that question with a hidden equation question. Place an array filter on your single-choice, based on the hidden multi-choice. Search the forums - Joffm has given many example of this method.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 2 months 19 hours ago by tpartner.

Please Log in to join the conversation.

More
2 months 17 hours ago #203190 by Joffm
In this case I'd recommend to set the default answers of the hidden multiple question to "checked".
Then you have only two assignments to uncheck "Maruti" and "BMW" if country=="US".
Something like
{M1_1=if(country=="US","","Y"}
...

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

More
1 month 4 weeks ago #203248 by holch

Then you have only two assignments to uncheck "Maruti" and "BMW" if country=="US".
Something like
{M1_1=if(country=="US","","Y"}

As far as I understood you want to uncheck if country is NOT =="US".

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

More
1 month 4 weeks ago #203255 by Joffm
Oh, so sorry,
it takes too much time between reading and writing something.

Of course it has to be:
{M1_1=if(country=="US","Y",""} because you want to display these brands only if country is "US".
...

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now