- Posts: 103
- Thank you received: 5
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
HowTo Filter the Columns of an Array (Numbers)
- socius
- Offline
- Premium Member
Less
More
6 years 8 months ago - 6 years 8 months ago #157760
by socius
Replied by socius on topic HowTo Filter the Columns of an Array (Numbers)
Hi!
thanks @DenisChenu for the helpful hideEmptyColumns plugin that seems exactly what I need to avoid too large arrays that scare respondents away!
Unfortunately it seems that I have a similar problem as @Haap some months ago - the filtering does not work as intended (s. screenshots).
I use Limesurvey 2.6.4-lts from the github repository github.com/LimeSurvey/LimeSurvey/tree/2.06lts (cloned on 170617), my template is the SkeletonQuest extensions.sondages.pro/skeletonquest-rwd-for-limesurvey/ , and I just cloned the plugin from github.com/SondagesPro/LS-hideEmptyColumn.git , unzipped and uploaded to plugins/hideEmptyColumn - and checked with the demosurvey. My result s. screenshots. Did I miss something here?
Thank you very much for the plugin and your help!
thanks @DenisChenu for the helpful hideEmptyColumns plugin that seems exactly what I need to avoid too large arrays that scare respondents away!
Unfortunately it seems that I have a similar problem as @Haap some months ago - the filtering does not work as intended (s. screenshots).
I use Limesurvey 2.6.4-lts from the github repository github.com/LimeSurvey/LimeSurvey/tree/2.06lts (cloned on 170617), my template is the SkeletonQuest extensions.sondages.pro/skeletonquest-rwd-for-limesurvey/ , and I just cloned the plugin from github.com/SondagesPro/LS-hideEmptyColumn.git , unzipped and uploaded to plugins/hideEmptyColumn - and checked with the demosurvey. My result s. screenshots. Did I miss something here?
Thank you very much for the plugin and your help!
Attachments:
Last edit: 6 years 8 months ago by socius. Reason: forgot to mention the upload to plugins/hideEmptyColumn
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 years 8 months ago #157848
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 HowTo Filter the Columns of an Array (Numbers)
I can't answer like this … in general it work then withoiut see the survey in live : can not answer
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.
- socius
- Offline
- Premium Member
Less
More
- Posts: 103
- Thank you received: 5
6 years 8 months ago #157868
by socius
Replied by socius on topic HowTo Filter the Columns of an Array (Numbers)
Hi @DenisChenu,
thanks for your response! I'll install and try it again. The demo on limesurvey.sondages.pro/655577.html?lang=en seems broken (?) May I ask you to set this up again? Maybe I can find the error by comparison of the html sources of the working example on your server and the not yet working example on mine.
Thank you very much!
Best, G
thanks for your response! I'll install and try it again. The demo on limesurvey.sondages.pro/655577.html?lang=en seems broken (?) May I ask you to set this up again? Maybe I can find the error by comparison of the html sources of the working example on your server and the not yet working example on mine.
Thank you very much!
Best, G
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 years 8 months ago #157871
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 HowTo Filter the Columns of an Array (Numbers)
Because it's moved to
demonstration.sondages.pro/655577.html
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 following user(s) said Thank You: socius
The topic has been locked.
- socius
- Offline
- Premium Member
Less
More
- Posts: 103
- Thank you received: 5
6 years 7 months ago #158042
by socius
Replied by socius on topic HowTo Filter the Columns of an Array (Numbers)
Hi,
I just compared the html and css of the example on demonstration.sondages.pro/655577.html and the result on my installation.
I found a difference in the hideemptycolumn.css from the download from extensions.sondages.pro/questions-updati...column/download.html vs. the css used in demonstration.sondages.pro/655577.html.
The "missing" parts (s. code below) are missing in the former, but are contained in the new demonstration. When I add these two lines, it works exactly like the example in demonstration.sondages.pro/655577.html.
Now it does exactly what it should do - thanks to @DenisChenu!
Best, G
I just compared the html and css of the example on demonstration.sondages.pro/655577.html and the result on my installation.
I found a difference in the hideemptycolumn.css from the download from extensions.sondages.pro/questions-updati...column/download.html vs. the css used in demonstration.sondages.pro/655577.html.
The "missing" parts (s. code below) are missing in the former, but are contained in the new demonstration. When I add these two lines, it works exactly like the example in demonstration.sondages.pro/655577.html.
Code:
td.hideEmptyColumn-hiddencolumn,th.hideEmptyColumn-hiddencolumn{ overflow:hidden !important; border-spacing:0 !important; border-collapse:collapse !important; padding:0 !important; width: 0 !important; /*missing*/ min-width: 0 !important; /*missing*/ } table.hideEmptyColumn-widthhiddencolumn{ border-collapse:collapse !important; }
Now it does exactly what it should do - thanks to @DenisChenu!
Best, G
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 years 7 months ago #158051
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 HowTo Filter the Columns of an Array (Numbers)
Hi,
The git repo seems uptodate : framagit.org/SondagePro-LimeSurvey-plugi.../hideemptycolumn.css
Maybe i didn't add it in the zip generation … thanks for report.
The git repo seems uptodate : framagit.org/SondagePro-LimeSurvey-plugi.../hideemptycolumn.css
Maybe i didn't add it in the zip generation … thanks for report.
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.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 years 7 months ago #158052
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 HowTo Filter the Columns of an Array (Numbers)
Just download
extensions.sondages.pro/IMG/auto/hideEmptyColumn.zip
: css seems up to date for me. Maybe assets generation broken for you ?
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.
- socius
- Offline
- Premium Member
Less
More
- Posts: 103
- Thank you received: 5
6 years 7 months ago #158070
by socius
Replied by socius on topic HowTo Filter the Columns of an Array (Numbers)
The downloaded hideemptycolumn.css from
extensions.sondages.pro/IMG/auto/hideEmptyColumn.zip
does not contain the two mentioned lines that are contained in the example that seem to make it work for me.
The css from extensions.sondages.pro/IMG/auto/hideEmptyColumn.zip :
vs. the css from the example on demonstration.sondages.pro/655577 (css: demonstration.sondages.pro/tmp/assets/59.../hideemptycolumn.css ):
Is this difference critical or should it work with the version w/o the two lines (width, min-width)?
Best, G
The css from extensions.sondages.pro/IMG/auto/hideEmptyColumn.zip :
Code:
td.hideEmptyColumn-hiddencolumn,th.hideEmptyColumn-hiddencolumn{ overflow:hidden !important; border-spacing:0 !important; border-collapse:collapse !important; padding:0 !important; } table.hideEmptyColumn-widthhiddencolumn{ border-collapse:collapse !important; }
vs. the css from the example on demonstration.sondages.pro/655577 (css: demonstration.sondages.pro/tmp/assets/59.../hideemptycolumn.css ):
Code:
td.hideEmptyColumn-hiddencolumn,th.hideEmptyColumn-hiddencolumn{ overflow:hidden !important; border-spacing:0 !important; border-collapse:collapse !important; padding:0 !important; width: 0 !important; min-width: 0 !important; } table.hideEmptyColumn-widthhiddencolumn{ border-collapse:collapse !important; }
Is this difference critical or should it work with the version w/o the two lines (width, min-width)?
Best, G
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
6 years 7 months ago #158083
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 HowTo Filter the Columns of an Array (Numbers)
I would definitely include the width and min-width rules.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 years 7 months ago #158111
by DenisChenu
Fixed :
framagit.org/SondagePro-LimeSurvey-plugi...72bdec322725b68fd40d
github.com/SondagesPro/LS-hideEmptyColum...72bdec322725b68fd40d
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 HowTo Filter the Columns of an Array (Numbers)
Good catch, thank yousocius wrote: The downloaded hideemptycolumn.css from extensions.sondages.pro/IMG/auto/hideEmptyColumn.zip does not contain the two mentioned lines that are contained in the example that seem to make it work for me.…
Fixed :
framagit.org/SondagePro-LimeSurvey-plugi...72bdec322725b68fd40d
github.com/SondagesPro/LS-hideEmptyColum...72bdec322725b68fd40d
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12943
- Thank you received: 3979
6 years 6 months ago #159101
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic HowTo Filter the Columns of an Array (Numbers)
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- ArriFerrari
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
5 years 9 months ago - 5 years 9 months ago #171510
by ArriFerrari
Replied by ArriFerrari on topic HowTo Filter the Columns of an Array (Numbers)
I found that the plugin also breaks if the column filter multiple choice question was marked "Mandatory"
In case anyone else is trying to get this working, make sure your multiple choice column filter question is "Optional"
You can work around this by setting the minimum number of responses to 1 for multiple choice questions.
It's also important to note that the column filtering question must be in a different question group that comes before the array you want to filter. It will not work if you put the filtering question in the same question group as the table.
I'm working in Limesurvey 2.73.1
In case anyone else is trying to get this working, make sure your multiple choice column filter question is "Optional"
You can work around this by setting the minimum number of responses to 1 for multiple choice questions.
It's also important to note that the column filtering question must be in a different question group that comes before the array you want to filter. It will not work if you put the filtering question in the same question group as the table.
I'm working in Limesurvey 2.73.1
Last edit: 5 years 9 months ago by ArriFerrari. Reason: Further explanation/findings
The topic has been locked.