Welcome to the LimeSurvey Community Forum

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

Relevance equations based on equation questions not working after upgrade

  • RaCMJS
  • RaCMJS's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 7 months ago #182698 by RaCMJS
Hi,
We just upgraded Lime to Version 3.15.8+190130.

Our surveys have very complex branching and to help simplify, we use a lot of relevance equations based off of "helper" equations. This worked great in our previous version (2.6 something) but is inconsistent now that we have upgraded. The relevance equations seem to work when the equation is text, but not when it is numeric.

There appear no errors in how the questions are specified.

This is from the logic file and is for the equation question:

rsdjew
[QID 67745]
Equation [*] 1 if(relrsd.NAOK == 1 or relrsdoth_jew.NAOK == "Y" or rsdjewaside.NAOK == 1 or rsdjewaside.NAOK == 2, '1', '0')

The equation works fine and we can see the values changing as we enter the data.

This next question should only show if the value for the equation above equals 1:

denomrsd
[QID 67746]
List (radio) [L] rsdjew.NAOK == "1" Were you raised...
Question attribute Value
other_replace_text Other. Please specify:
other Y

However, this does not seem to work. The question does not appear, regardless of the value. When we remove the relevance equation, it shows up.

To reiterate, this worked fine in a previous version. What are we doing wrong? Please help.

Thank you.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #182699 by Joffm
Hi,
A sample (*.lss) of this your issue with only these five questions involved would have been helpful.

I tried to reproduce, but failed.
Even that you say "if it is numeric", but use strings and mix single quotes and double quotes.
Works as expected. (Version 3.16.0+190225 )

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • RaCMJS
  • RaCMJS's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 7 months ago #182702 by RaCMJS
Here is the section with the questions. I really appreciate your help.

File Attachment:

File Name: limesurvey...3137.lsg
File Size:12 KB
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago - 5 years 7 months ago #182708 by Joffm
Hi,
sorry, as before I do not see any issue (Version 3.16.0+190225)

If question [denomrsd2] must not be displayed it is not displayed


and if it has to be displayed it is displayed


But a test in version 3.15.5+181115 showed the issue. Till now I didn't find the reason.

So, an update will help.

Joffm

BTW: Do not send question groups (*.lsg), always surveys (*.lss)
1. we have to create a survey before where we import the group.
2. groups are language dependent (If I created a survey in English, the group is Spanish, it will not be imported)

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 7 months ago by Joffm.
The topic has been locked.
  • RaCMJS
  • RaCMJS's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 7 months ago #182709 by RaCMJS
OK. Thank you for testing this and letting me know that this is an issue with the Lime version and not that I am crazy.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 years 7 months ago #182718 by DenisChenu
Maybe
bugs.limesurvey.org/view.php?id=14337
or
bugs.limesurvey.org/view.php?id=14198

Since this are new issue with 3.X version (fixed in 2.73 and lesser).

Please : report issue too.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #182724 by Joffm
Hi,

I just found:
If the question "denomrsd2" is in a different group, it works in 3.15.5

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.
  • RaCMJS
  • RaCMJS's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 7 months ago #182725 by RaCMJS
I guess this is why I am getting inconsistent results with this. The cases in which this works in my survey is when the equation is in another section. This is really frustrating.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 years 7 months ago #182740 by DenisChenu

DenisChenu wrote: …
Please : report issue too.

;)

Else : i think (hope) a way to have constant system can be usage of
Code:
{intval(MyQuestion.shown)}

Maybe
Code:
{MyQuestion.shown+""}
(cast as string) or
Code:
{MyQuestion.shown*1}
(cast as float) work too (it must)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose