View Issue Details

IDProjectCategoryView StatusLast Update
13441Bug reports[All Projects] Survey takingpublic2019-10-25 14:37
Reporterorvil Assigned ToDenisChenu  
Status assignedResolutionopen 
Product Version3.4.x 
Target VersionFixed in Version 
Summary13441: Colums (still) can't be hidden in Array (numbers) questions

Rows can be hidden by using EM in Array questions. But although there are fields for editing an expressin - or simly 1 or 0 - there is no reaction when the question is displayed.

Steps To Reproduce

Create a Array (number) question and try to hide a culumn by setting the corresponding EM field to zero

Additional Information

In the screenshot the two leftmost items should not be visible due to the zeros in the relevance equations

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.4.3
I will donate to the project if issue is resolvedNo
BrowserFF, IE, Chrome
Database & DB-VersionMySql
Server OS (if known)Debian Linux, Raspbian
Webserver software & version (if known)Apache2
PHP Version7.1


has duplicate 12277 confirmed Bug reports Relevance equation on column of array-number question doesn't work 
has duplicate 15139 closedc_schmitz Feature requests Array by column relevance equation not working 
related to 13739 closeddominikvitt Bug reports Relevance equation broken for array by column 




2018-03-03 23:12


Clipboard16.jpg (96,657 bytes)
Clipboard16.jpg (96,657 bytes)


2018-03-08 14:56

administrator   ~46948

Can you please attach a 2-question survey demonstrating the issue?



2018-03-09 22:48

reporter   ~47002

Here it is!
You can check it for a first impression at

limesurvey_survey_issue13441.lss (23,365 bytes)


2019-06-24 11:06

manager   ~52496

@dominikvitt, this is the third one I found - this one is about Array (Numbers).



2019-08-08 12:23

developer   ~53151

@cdorin and @dominikvitt : it's a feature allowed for 4.0 ? If yes : i have some idea. Can be done in plugin or theme except for the admin part.

If you're OK : assing it to me , i think i can do it before november in core.



2019-09-25 12:35

reporter   ~53706

@DenisChenu: found a solution meanwhile by hiding columns via js (thanks to you addScript plugin!) and this idea you had for a former version of LS.
The js looks for cols with empty headers, sets these col to width 0 and recalculates the width of all other cols. Is working fine, as fas as I can see.

If you are on this issue I'd like to share the code working vor LS 3.18



2019-09-25 12:42

developer   ~53707

@orvil, i already have the javascript for 3.X , but need

  1. Update admin GUI to add this option (on sub question)
  2. Dynamically updated according to relevance:on / relevance:off event.
  3. Work on IE10

I'm happy to have more code for the js part :)




2019-09-25 12:56

administrator   ~53708

Well, we don't have to have IE10 compatibility. See



2019-09-25 13:25

reporter   ~53709

@DenisChenu: Sounds promising, thats good news :)
added the js to hide working with LS 3.18.0 (its derived from your plugin version script. Had to change the css adressing, because former version did not work for me any more)

at 2. yes that's the crucial point I do not find how it is working
at 3. I definitely can say it does not work on ie11 - but unfortunately that's also true for the LS built in row-hiding on em expression!

hideEmptyColumns.js (2,607 bytes)


2019-09-25 15:35

developer   ~53712

Right IE11 :) . And if column are not hidden but relevance is OK on «any browser» it's OK :).

Thanks for reminder @c_schmitz

About js : i think we can manage more easily with some data attribute in table too :). And usage of event allowing to test if it's a column or a line :)



2019-09-26 09:33

reporter   ~53715

@DenisChenu: Thanks, these are really nice pieces of code :) I'll check this out in my environment.
for what it's worth: IE 11 has a share of 3,76% (August 2019, worldwide) - hm?!

Issue History

Date Modified Username Field Change
2018-03-03 23:12 orvil New Issue
2018-03-03 23:12 orvil File Added: Clipboard16.jpg
2018-03-08 14:56 c_schmitz Assigned To => c_schmitz
2018-03-08 14:56 c_schmitz Status new => feedback
2018-03-08 14:56 c_schmitz Note Added: 46948
2018-03-09 22:48 orvil File Added: limesurvey_survey_issue13441.lss
2018-03-09 22:48 orvil Note Added: 47002
2018-03-09 22:48 orvil Status feedback => assigned
2018-03-29 08:08 DenisChenu Relationship added has duplicate 12277
2018-06-04 15:02 DenisChenu Relationship added related to 13739
2019-05-21 17:15 c_schmitz Product Version 3.1.x => 3.4.x
2019-06-24 11:06 cdorin Note Added: 52496
2019-08-08 12:21 DenisChenu Relationship added has duplicate 15139
2019-08-08 12:23 DenisChenu Note Added: 53151
2019-08-08 14:42 cdorin Assigned To c_schmitz => DenisChenu
2019-09-25 12:35 orvil Note Added: 53706
2019-09-25 12:42 DenisChenu Note Added: 53707
2019-09-25 12:56 c_schmitz Note Added: 53708
2019-09-25 13:25 orvil File Added: hideEmptyColumns.js
2019-09-25 13:25 orvil Note Added: 53709
2019-09-25 15:35 DenisChenu Note Added: 53712
2019-09-26 09:33 orvil Note Added: 53715