- Posts: 2
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
3 years 11 months ago - 3 years 11 months ago #198149
by deklesen
Using a MultipleChoice question as array filter not working when it is hidden was created 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
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
Attachments:
Last edit: 3 years 11 months ago by deklesen.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
3 years 11 months ago - 3 years 11 months ago #198159
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Using a MultipleChoice question as array filter not working when it is hidden
Hide the question with a CSS class "hidden", not with the question setting.But, if the HiddenMC question is configured with "Always hide this question", it does not work:
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12923
- Thank you received: 3977
3 years 11 months ago #198163
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Using a MultipleChoice question as array filter not working when it is hidden
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
3 years 11 months ago - 3 years 11 months ago #198169
by deklesen
Replied by deklesen on topic Using a MultipleChoice question as array filter not working when it is hidden
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!
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
3 years 11 months ago #198175
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Using a MultipleChoice question as array filter not working when it is hidden
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).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.
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.