Welcome to the LimeSurvey Community Forum

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

Low level relevance equations

  • Matadeleo
  • Matadeleo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 7 months ago #158705 by Matadeleo
Low level relevance equations was created by Matadeleo
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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 7 months ago #158709 by Joffm
Replied by Joffm on 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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • Matadeleo
  • Matadeleo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 7 months ago #158710 by Matadeleo
Replied by Matadeleo on 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 :)
The topic has been locked.
  • Matadeleo
  • Matadeleo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 6 months ago #158775 by Matadeleo
Replied by Matadeleo on 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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #158806 by Joffm
Replied by Joffm on 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.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Matadeleo
  • Matadeleo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 6 months ago - 6 years 6 months ago #158840 by Matadeleo
Replied by Matadeleo on topic Low level relevance equations
Here is the setup:


Q1 (Single Choice)

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

Q2Filter (Multiple Choice) -> Always Hide this question

Q2 (Single Choice)
Code:
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
Code:
.displayNone {
    display: none;
}

Then apply this to the question via "Advanced Settings -> CSS class(es): displayNone"
Last edit: 6 years 6 months ago by Matadeleo. Reason: Added solution, hope it helps
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago #158841 by Joffm
Replied by Joffm on 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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Matadeleo
  • Matadeleo's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 6 months ago #158844 by Matadeleo
Replied by Matadeleo on topic Low level relevance equations
Doesn't work with always hide :P have to use the css class to hide
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 6 months ago - 6 years 6 months ago #158851 by tpartner
Replied by tpartner on 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: 6 years 6 months ago by tpartner.
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose