Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: hide array column

hide array column 4 years 7 months ago #78465

  • Thymos
  • Thymos's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
hi,

i would like to hide answer nr.8 in my array. it should look like this:
1 2 3 4 5 6 7   9
x x x x x x x   x

so i want to have a gap between answer 7 and 9 because answer nr.9 is the "no answer" option. can somebody help me??
Last Edit: 4 years 7 months ago by Thymos.
The administrator has disabled public write access.

hide array column 4 years 7 months ago #78546

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1894
  • Thank you received: 467
  • Karma: 118
You can try a trick using CSS nth-child property...
It works fine to hide rows but I've never tried for column...
The problem is to apply the rule only for your chosen question(s) because you can get some effects further for other tables used by your template: answertable, statistictable etc.

Ben/
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The administrator has disabled public write access.

hide array column 4 years 7 months ago #78550

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9551
  • Thank you received: 1370
  • Karma: 389
Hello,

For css specific for a question
#questionQQ .question tbody td:nth-child(8){visibility:hidden}

With a little script:
$("#questionQQ .question tbody td:nth-child(8)").css('visibility','hidden');
$("#questionQQ .question thead th:nth-child(8)").css('visibility','hidden');
For bad navigator like IE ;).

Replace QQ with the question number
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.
The following user(s) said Thank You: Ben_V

Aw: Re: hide array column 4 years 7 months ago #78560

  • Thymos
  • Thymos's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
thanks!
The administrator has disabled public write access.

Aw: Re: hide array column 4 years 7 months ago #78627

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6027
  • Thank you received: 373
  • Karma: 260
Thymos wrote:
thanks!
You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to give Limesurvey a future .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.
Time to create page: 0.309 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form