Dual scale array: Relevance equation does not work

More
4 years 7 months ago - 4 years 7 months ago #92747 by tpphilipp
tpphilipp created the topic: Dual scale array: Relevance equation does not work
Hello,

I have a problem with a relevance equation that refers to a dual scale array.

The question looks like this:



There is one subquestion:



Here are the answer options (Yes and No) for both scales:



That's the logic file:



The following question should only be displayed if the user selects "Yes" in one of the columns of the question with the dual scale array before:



The relevance equation is X10_SQ001_0.NAOK=="A1" or X10_SQ001_1.NAOK=="A1"

But whatever I am trying, the following question won't be displayed:



I have tried anything: different browsers on different systems, different templates, different language versions, using the conditions editor instead of expression manager, using two single arrays instead of a dual scale array (which works fine, the following question is displayed if "Yes" is selected) and so on.

Any suggestions what's wrong? I have attached a test survey with the 2 questions:

File Attachment:

File Name: limesurvey...2455.lss
File Size:17 KB


Thanks in advance,
Thomas
Last Edit: 4 years 7 months ago by tpphilipp. Reason: Screenshot did not display everything

Please Log in to join the conversation.

More
4 years 7 months ago #92831 by tpphilipp
tpphilipp replied the topic: Dual scale array: Relevance equation does not work
Hello,

any suggestions on this?

It does not work whatever I try. So long I have tested it with the conditions editor and nearly every possible Qcode-alternative (NAOK, shown, value, ...). The logic should be the same as with a matrix where the relevance equation in the given example works perfect. But as soon as it comes to a dual array I can not adress the values of the scales.

It seems like a bug and that the responded values for the scales in dual arrays are automatically "on".

Greetings,
Thomas

Please Log in to join the conversation.

More
4 years 6 months ago #93457 by tpphilipp
tpphilipp replied the topic: Dual scale array: Relevance equation does not work
Hello,

I stumbled upon the solution: a relevance equation that refers to a dual scale array does not work within the same question group. If you enter the relevance equation for a question in the following question group it works.

Seems like a bug.

tpphilipp

Please Log in to join the conversation.

More
4 years 6 months ago #93460 by DenisChenu
DenisChenu replied the topic: Dual scale array: Relevance equation does not work
Hello,

Seem corrected for next release:
bugs.limesurvey.org/view.php?id=7309

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: tpphilipp

Please Log in to join the conversation.

More
4 years 3 months ago - 4 years 3 months ago #96588 by dissco
dissco replied the topic: Dual scale array: Relevance equation does not work
Hey, I have nearly the same Problem.
My First question type is array (number):

Questionname: dual1
answer 1answer 2
name 1
name 2
name 3
name 4

Possible Asnwer for that could be:
answer 1answer 2
name 1XX
name 2X
name 3X
name 4X

Than comes the next Question

dual2:

here I have a dual array.
For that I want to have, like in this example, only the
option to evaluate name 1 and name 4 because they are checked in dual1 in the first answer column.

tried that with:
((dual1_SQ001_1.NAOK == "1" or dual1_SQ002_1.NAOK == "1" or dual1_SQ003_1.NAOK == "1" or dual1_SQ004_1.NAOK == "1" or dual1_SQ005_1.NAOK == "1" or dual1_SQ006_1.NAOK == "1" or dual1_SQ007_1.NAOK == "1" or dual1_SQ008_1.NAOK == "1"))

for 8 answer options in row for dual1.
That code I wrote in the relevance equation.
In the field array filter I wrote dual1.

The Problem is, that it filters the names, but for all answers given in dual1. So, in my example above the name 2 is also visible.

could someone point me out to the right relevance equation?

In the attachements you can find the first and the second question.

What is wrong with my relevance equation?
Attachments:
Last Edit: 4 years 3 months ago by dissco.

Please Log in to join the conversation.

More
4 years 3 months ago #96600 by DenisChenu
DenisChenu replied the topic: Dual scale array: Relevance equation does not work
Hello,

Relevance equation are not used like this.

Here you ask to have one of the answer in dual1 at 1 to validate whole question.

Think you have to use adanced attroibute filtre, but need some workaround for array dual i think.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now