Low level relevance equations

More
1 month 4 days ago #158705 by Matadeleo
Matadeleo created the topic: Low level relevance equations
Hi,

With the newer versions of LimeSurvey, one of my favourite features is the option to make a relevance equation on the sub-question level however, list(radio) and other single choice questions don't seem to have this functionality.

Is there a reason this isn't possible, or is this something which will be added in future releases? At the moment I'm working around this by creating a multiple choice with all options exclusive + max 1 answer, not the most elegant solution :P

Please Log in to join the conversation.

More
1 month 4 days ago #158709 by Joffm
Joffm replied the topic: Low level relevance equations
Hello, Matedeleo,
maybe an option is to create a hidden multiple question, check the desired oprtions with an equation and use this Multi as Matrix filter of the single choice question.

Regards
Joffm
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
1 month 4 days ago #158710 by Matadeleo
Matadeleo replied the topic: Low level relevance equations
Hi Joffm, that's a nicer way to do it thanks.

I just wonder if in future releases, will LimeSurvey support Relevance equation for answer options as well as subquestions :)

Please Log in to join the conversation.

More
1 month 3 days ago #158775 by Matadeleo
Matadeleo replied the topic: Low level relevance equations
Actually, now I think of it - this solution wouldn't work! If the Multi is an array/matrix filter for the single choice, then it will work, but when you hide that, it will break it

Please Log in to join the conversation.

More
1 month 2 days ago #158806 by Joffm
Joffm replied the topic: Low level relevance equations
Hi, Matadeleo,

here a small example.
The first question is just to select something.
Then the equations and the hidden Multi.
At last the filtered Single.

Best regards
Joffm

Maybe I misunderstood your problem.
Attachments:

Please Log in to join the conversation.

More
1 month 2 days ago - 1 month 2 days ago #158840 by Matadeleo
Matadeleo replied the topic: Low level relevance equations
Here is the setup:


Q1 (Single Choice)

Q2Equation (Equation) -> Always Hide this question
{Q2Filter_1=if(Q1.NAOK == "1", "Y", "")}

Q2Filter (Multiple Choice) -> Always Hide this question

Q2 (Single Choice)
Array Filter: Q2Filter


If you make Q2Filter -> Always Hide this question then Q2 Answer Options will not be shown. Hiding the question seems to disable it, instead of simply hiding it.

The solution I did to this, is to simply make a CSS class in the template editor @ template.css
.displayNone {
    display: none;
}

Then apply this to the question via "Advanced Settings -> CSS class(es): displayNone"
Last Edit: 1 month 2 days ago by Matadeleo. Reason: Added solution, hope it helps

Please Log in to join the conversation.

More
1 month 2 days ago #158841 by Joffm
Joffm replied the topic: Low level relevance equations
Hi,
but in my example it works with "always hide", or didn't it?

On the other side there is a predefined class "hidden" which you can set in "advanced settings / css-class".

Regards
Joffm

Please Log in to join the conversation.

More
1 month 2 days ago #158844 by Matadeleo
Matadeleo replied the topic: Low level relevance equations
Doesn't work with always hide :P have to use the css class to hide

Please Log in to join the conversation.

More
1 month 2 days ago - 1 month 2 days ago #158851 by tpartner
tpartner replied the topic: Low level relevance equations
You can use a question class "hidden" to hide the question without any changes to template.css.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 1 month 2 days ago by tpartner.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now