hidden multi-choise prefill with EM

More
3 years 7 months ago #134438 by Liod_DS
Hi all,

i have a question (maybe already solved, but i can't find anything that answer exactly)

is possible to prefill an hidden multi question with the EM ? (i need it to filter the next question)

i'll explain the problem:

Q1 - Select your country; [single]
Q2 - Select your favorite shops [single]
[the list is VERY long and not all the shops are in all country, so i need to filter Q2]

my idea was: make a Qmask[multi-choice/hidden] with all the shops code -> check all the shops available (via EM)-> apply the filter ... i've used the js workournd to filter the Q2 and it works fine, but i'm sure the powerfull EM can do the trick ! (i use the EM to set some hidden single choice question, and i think is a better solution)

Thanks for the reply and sorry if repost...

Dave

keep improving

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
3 years 7 months ago #134466 by jelo
Which version of LS do you use?
You can use sub-question relevance to show/hide items in Q2 depending on answers of Q1.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #134470 by Liod_DS
Version 2.50+ Build 160412

i can't found sub-question relevance on the single-choice type (see the attachment) ... it's strange because i see it on other type question (grid and multi)

maybe it's a bug ?

keep improving
Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #134474 by jelo
You're right. There seems to be no subreleveance in single choice question. I haven't found it in LS 2.06LTS and LS 2.5. Little surprise to me.

As a workaround think about using a multiple-choice question with a answerlimit of one.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #134478 by tpartner

You're right. There seems to be no subreleveance in single choice question. I haven't found it in LS 2.06LTS and LS 2.5. Little surprise to me.

Yeah, that's because those are answers, not sub-questions and therefor don't have their own columns in the database. I think answer relevance is in the works somewhere.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago - 3 years 7 months ago #134483 by Liod_DS
I hope some day the EM will be able to set the hidden multi ( I understand it can't now but that can solve a lot of masking problems), until that day i will use the JS (or the formatted multi) workaround!


Thanks all for the answers!

(Because the EM can't... right ???)

keep improving
Last edit: 3 years 7 months ago by Liod_DS.

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago - 3 years 7 months ago #134530 by first
We can always set hidden muti question . Create a equation type question before hidden multi and place below code in its question source. You can then hide both multi and equation question and punching will work just fine. Yes , It solves many masking problems.

eg:
{hideQ2_1 = if(Q1_1.NAOK == "Y","Y","")}

Terms "hidden multi" , "set" , "masking" sounds familiar to me I am sure you are Confirmit programmer as well. I am also confirmit programmer and use these terminologies :)

Survey Designer and Programmer
Last edit: 3 years 7 months ago by first.

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #134551 by Liod_DS
Yeah! You've guessed it! Working primarily in Confirmit, now I'm pushing to move some interviews on limesurvey and I have to figure it out all by myself!

So far i've made it with some very simple Interview, but i need advanced masking(filtering) quotas and loops :dry:

Thanks for the very usefull tips, have a nice day!

keep improving

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!