Welcome to the LimeSurvey Community Forum

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

Relevance Equation eliminating answers?

  • giovbod
  • giovbod's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #212244 by giovbod
Hi Everyone,
I suspect I am doing something wrong, but can't find what.
I setup a Survey with an array question (Q1)  set as numeric array with checkbox option. I need to ask who in the family liked which fruit.
The question is structured as 4 rows 3 column array like this:
                          you              your friend             we don't have them
apples                  O                     O                                    O
bananas               O                      X                                   O
kiwi                       O                      O                                    O
don't like fruits      X                      O                                   O

From  this  topic I managed to make it so that if I select "don't like fruits" all cells above are not selectables.
With the answers I collect from Q1 I decide to activate or not 2 other questions (Q2 and Q3) using a relevance equation.

Q3 asks why people don't like fruits, therefore is active if "don't like fruits" is selected in both the first two colums, Q2 is active otherwise. 
Relevance equation for Q3 is if(( Q1_SQ004_SQ00A.NAOK  == 1) AND ( Q1_SQ004_SQ00B.NAOK  == 1), 1, 0) where SQ004 is "don't like fruits", SQ00A is "you" and SQ00B is "your friend"

When I do the "preview the survey" everything works perfectly. But if I make the survey active, no answer is recorded.

Here attached is the test survey.

Anyone can telle what I am doing wrong?

Thank you in advanceG.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #212245 by tpartner
Replied by tpartner on topic Relevance Equation eliminating answers?
All answers are recorded correctly for me but I don't see any JavaScript in Q1.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • giovbod
  • giovbod's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #212256 by giovbod
Replied by giovbod on topic Relevance Equation eliminating answers?
I didn't put the javascript code in this example.

Every single time I run the survey, it does not record any answer for the questions with relevance equation ...
If the survey runs correctly with you it must be something with my server configuration. Do you have any idea? Is it there any troubleshooting I can run?
I'm running version 3.17.0+190402, running on a docker in my home NAS
Thank you again
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #212264 by tpartner
Replied by tpartner on topic Relevance Equation eliminating answers?
Your version is almost 2 years old. Try updating to the latest 3.x version - community.limesurvey.org/downloads/ .

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • giovbod
  • giovbod's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #212317 by giovbod
Replied by giovbod on topic Relevance Equation eliminating answers?
Thank you. It seems the update fixed the issue.
Thank you thank you thank you
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose