Welcome to the LimeSurvey Community Forum

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

Ranking data does not record when using array filter

  • vadindot
  • vadindot's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 4 months ago #192220 by vadindot
Using Version 3.21.2 (also in 2.72.5)


Title pretty much says it, the question displays correctly, however it does not record the data.

I saw bug reports about this, but they appeared to be fixed, so before I submit another, can someone tell me if anything looks wrong in what I have.
The topic has been locked.
  • vadindot
  • vadindot's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 4 months ago #192221 by vadindot
This was the previous bug I found
bugs.limesurvey.org/view.php?id=15369
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #192224 by DenisChenu
Please : upload a lss (complete survey) with this single group.

Then we can really check

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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago - 4 years 4 months ago #192229 by tpartner
@vadindot, how are you filtering?

This simple example works for me in version 3.21.2.

File Attachment:

File Name: limesurvey...2-18.lss
File Size:27 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 4 months ago by tpartner.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • vadindot
  • vadindot's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 4 months ago #192253 by vadindot
Hi Tony! Haven't begged for you help in a while :)


Here's the story... I have an array with 8 options with a 1-5 rating.
The ranking question should contain only those options that were rated a 4 or 5.
I have a hidden multiple choice question that I use for the filter.
I have an equation that sets the corresponding option to "Y" if they rated it a 4 or 5
(There's also an equation that skips the ranking question if there would be none or one option)

Everything is displayed correctly, it just isn't saving the data in mine.
(Your example work, not sure how it is different other than my question is hidden)
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #192254 by tpartner
I found a few problems causing conflicts...

- You have unnecessary sub-question relevance in the multiple-choice question.
- The multiple-choice question is mandatory which is not required.
- The multiple-choice question has default answers which is not required.

Here is your sample survey with those fixed:

File Attachment:

File Name: limesurvey...5711.lss
File Size:32 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #192255 by Joffm
Remove the subquestion relevance in q20test.
Remove the not necessary equation in q20work; you have this equation in q20skip.

You may shorten the equation in q20skip to {countifop(">",3,that.q20)}

Then the ranking is saved.


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #192256 by tpartner
Haha, I beat you to it Joffm! :)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #192258 by DenisChenu

vadindot wrote: …
Everything is displayed correctly, it just isn't saving the data in mine.

@tparner and @Joffm : in my opinion : it's a LimeSurvey bug and must be reported , but i didn't look at mlogic, maybe it's not a LimeSurvey bug.

Can you confirm or invalidate ?

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.

Lime-years ahead

Online-surveys for every purse and purpose