Relevance equation marked as wrong until Checking the Logic

Mehr
3 Monate 6 Tage her #170062 von NielsFro
NielsFro erstellte das Thema Relevance equation marked as wrong until Checking the Logic
Hi LimeSurvey Forum,


I'm experiencing a strange behaviour which I can't really explain and I wonder if you have come across the same:


I have a survey in which
1) question B is only displayed if question A is checked with YES and
2) question C is only displayed if question B is checked with YES

in some cases, when I just view the question overview, LimeSurvey tells me that the equations are wrong (see screenshot 1)

when I click on "Check Logic" in the top navigation, I can not find any error (see screenshot 2)

when I then go back to the question overview, the equation is displayed as correct (screenshot 3)


I wasn't yet able to find out if an equation errorous equation (marked in bold red) really does not work, or if it is working fine anyways, since it should actually be correct.

Here's some information on the system and the server

LimeSurvey version: 3.4.4
LimeSurvey build: 180305
PHP version: 7.1.18
Web server software: Apache
Database driver: mysql

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Monate 6 Tage her #170073 von holch
holch antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic
You noticed that in screenshot 1 you are using the SGQA code and in screenshot 2 you are using the question code, right?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Monate 6 Tage her #170088 von NielsFro
NielsFro antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic
Hi holch, thanks a lot for your quick reply!

Of course I have noticed the different formats - the strange thing is, that I did not change anything from screenshot 1 to screenshot 3. I only clicked on "Check Logic" and then went back to the original page - then it changed "automatically".

The condition was created using the conditions Designer in LimeSurvey.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Monate 6 Tage her #170089 von holch
holch antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic

The condition was created using the conditions Designer in LimeSurvey.


Ok, so this is important information, because Relevance equations are not 100% the same as conditions. Seems that the condition designer is creating expressions/relevance equations, but it still isn't the same.

However, of course the conditions created by LS should not result in errors. However, before creating a bug report you should upgrade to the latest version and see if the problem still persists. If so, please file a bug report. It does not really make sense to file bug reports for older versions, because the problem might be solved already in the latest version.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Monate 6 Tage her #170093 von DenisChenu
DenisChenu antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic
It happen some time, seems to be when session survey are not done…

Hard to fix because near hard to reproduce :). But if you have a clean step by step to reproduce issue : please report issue :)

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 .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Monate 4 Tage her #170213 von NielsFro
NielsFro antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic
Thanks a lot to both of you for your answers!

Unfortunately, I can not provide a clean way to reproduce this... We'll upgrade to the latest version at first and check it again.

However - as holch said, the conditions designer is not exactly the same as creating relevance equations - would you recommend using the SQGA input field when editing the question to create the relevance equation?

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Monate 4 Tage her #170224 von tpartner
tpartner antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic
Using the relevance field is far more versatile and faster than the conditions designer.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Folgende Benutzer bedankten sich: DenisChenu, NielsFro

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Monate 4 Tage her #170238 von holch
holch antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic
I also would always use Expression Manager and relevance equations over conditions.

Reasons:
- As Tony says: once you understood how it works, it is a lot quicker. And it doesn't take long to understand it. Simple relevance equations are really, really quick.
- You can do a lot more complicated stuff with expressions.
- You can do it while you create the question and test it already, so you don't have to create the question, then go into the conditions designer

Give it a shot. I know sometimes it is scary to give up the GUI, but the EM codes are not too complicated and once you got it, you will never want to go back to the conditions.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Folgende Benutzer bedankten sich: LouisGac, NielsFro

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 1 Woche her - 2 Monate 1 Woche her #171165 von Joffm
Joffm antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic
Hi,

Let's say, you created a survey with two questions (Q1 and Q2) and the relevance equation of Q2 "Q1==1".

So the next day you open your survey and open question Q2 the relevance equation is displayed in red - marked as error.
In my opinion at that stage LS is not aware that a question Q1 exists.
If you open Q1 to edit and save, and then open Q2 again, everything is fine.
Now LS knows about the question Q1.

If you run the logic file, of course LS loops through all questions.
So it knows which questions are there or not and does not show this "error".

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Letzte Änderung: 2 Monate 1 Woche her von Joffm.
Folgende Benutzer bedankten sich: DenisChenu

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 1 Woche her #171213 von DenisChenu
DenisChenu antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic

Joffm schrieb: …
So the next day you open your survey and open question Q2 the relevance equation is displayed in red - marked as error.
In my opinion at that stage LS is not aware that a question Q1 exists.
If you open Q1 to edit and save, and then open Q2 again, everything is fine.
Now LS knows about the question Q1.

Yes, but still an issue : it work in 2.73 and previous.
If i remind : fix are already apply to 3.X but still not fixed (or un-fixed).

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 .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Monat 4 Wochen her #171799 von asiin
asiin antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic
Same Problem here with the latest version. LS produces errors in the relevance equation that was created with the conditions designer.

Regardless of the workaround with Expression Manager, this is still a bug!

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Monat 4 Wochen her #171810 von jelo
jelo antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic

asiin schrieb: Regardless of the workaround with Expression Manager, this is still a bug!

Well, any bugticket number at hand? Or did some tried to submit a bug? As long as there is no stable way to reproduce the issue, the issue will live on.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey
Folgende Benutzer bedankten sich: DenisChenu

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
1 Monat 4 Wochen her #171813 von DenisChenu
DenisChenu antwortete auf das Thema: Relevance equation marked as wrong until Checking the Logic

jelo schrieb:

asiin schrieb: Regardless of the workaround with Expression Manager, this is still a bug!

Well, any bugticket number at hand? Or did some tried to submit a bug? As long as there is no stable way to reproduce the issue, the issue will live on.

There are stable way to reproduce issue, (just copy paste a link to a question view with some EM, unlog, paste the link, log : and see the issue) :)

But totally right : a bug not reported is a bug not fixed

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 .

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha