- Posts: 34
- Thank you received: 1
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
- Topic Author
- Offline
- Junior Member
Less
More
5 years 3 weeks ago #182698
by RaCMJS
Relevance equations based on equation questions not working after upgrade was created 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.
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12922
- Thank you received: 3977
5 years 3 weeks ago #182699
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Relevance equations based on equation questions not working after upgrade
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
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 34
- Thank you received: 1
5 years 3 weeks ago #182702
by RaCMJS
Replied by RaCMJS on topic Relevance equations based on equation questions not working after upgrade
Here is the section with the questions. I really appreciate your help.
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12922
- Thank you received: 3977
5 years 3 weeks ago - 5 years 3 weeks ago #182708
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Relevance equations based on equation questions not working after upgrade
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)
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 3 weeks ago by Joffm.
The topic has been locked.
- RaCMJS
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 34
- Thank you received: 1
5 years 3 weeks ago #182709
by RaCMJS
Replied by RaCMJS on topic Relevance equations based on equation questions not working after upgrade
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
5 years 3 weeks ago #182718
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Relevance equations based on equation questions not working after upgrade
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.
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 service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12922
- Thank you received: 3977
5 years 3 weeks ago #182724
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Relevance equations based on equation questions not working after upgrade
Hi,
I just found:
If the question "denomrsd2" is in a different group, it works in 3.15.5
Joffm
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 34
- Thank you received: 1
5 years 3 weeks ago #182725
by RaCMJS
Replied by RaCMJS on topic Relevance equations based on equation questions not working after upgrade
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
5 years 3 weeks ago #182740
by DenisChenu
Else : i think (hope) a way to have constant system can be usage of
Maybe
(cast as string) or
(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 service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Relevance equations based on equation questions not working after upgrade
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+""}
Code:
{MyQuestion.shown*1}
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.