Welcome to the LimeSurvey Community Forum

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

Using a MultipleChoice question as array filter not working when it is hidden

  • deklesen
  • deklesen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago - 3 years 11 months ago #198149 by deklesen
Hello all,
I have the following issue and would very much appreciate some help :-)

This is the structure:
https://imgur.com/0ll3elq


"Array" is a simple array:
https://imgur.com/naCciVC


Now I want to do a ranking but only with the options that are marked as "Best". As this does not seem possible with a Ranking question alone, I created a MultipleChoice question and use it as an array-filter in the ranking:
https://imgur.com/UwTzpYi


Thus, in the "Ranking" question, Array filter is set to "HiddenMC".

Now, this works as extended, BUT ONLY IF the HiddenMC question is actually NOT hidden:
https://imgur.com/f2XJtco

But, if the HiddenMC question is configured with "Always hide this question", it does not work:
https://imgur.com/5fs3WeM

As I chose only Label1 and Label3 as "Best", the expected behaviour is that the Ranking question only shows these two. The observed behaviour is that the array filter does not seem to do anything at all :-(


LimeSurvey version: 4.2.1, build 200428


I also provide a minimal example that showcases the behaviour, find it attached.


I would be very happy if someone could help me out with this issue :)
Last edit: 3 years 11 months ago by deklesen.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago - 3 years 11 months ago #198159 by tpartner

But, if the HiddenMC question is configured with "Always hide this question", it does not work:

Hide the question with a CSS class "hidden", not with the question setting.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 11 months ago by tpartner.
The following user(s) said Thank You: deklesen
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #198163 by Joffm
Hi,

what did you export?
This - as you say - small sample has a size of nearly 2MB.
There seems to be a real lot of garbage in it.
You may expext 20-30 kB.

So try again.
Create this sample and export it.

And , please just attach your screenshots here.
Or if you upload to imgur, set a clickable link here.
Otherwise we have to copy each one into the browsers address line.

We are volunteers, so please, ease our life as much as possible.


Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: deklesen
The topic has been locked.
  • deklesen
  • deklesen's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago - 3 years 11 months ago #198169 by deklesen
Hi,
thank you for your answers!
Using the CSS class "hidden" does indeed solve my problem! Thanks a bunch, tpartner!

To Joffm, sorry for not checking the filesize :( I exported it again, it's the same size. Not sure what I'm doing wrong here. But now, my issue is solved anyways :)

Also sorry about the pictures. I thought using [ img ] would work and display the pictures inline :(


Anyways, THANK YOU BOTH VERY MUCH! Thank you for volunteering, you're doing a good deed! THANKS!
Last edit: 3 years 11 months ago by deklesen.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #198175 by holch

To Joffm, sorry for not checking the filesize :( I exported it again, it's the same size. Not sure what I'm doing wrong here.

You are sending the whole (huge) survey instead of an extract with only the questions in it that contain the problem (so next time, make a copy of your survey, delete everything that is not necessary for the problem, export this version to a LSS file).

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose