Welcome, Guest
Username: Password: Remember me

TOPIC: hide array column

hide array column 2 years 5 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: 2 years 5 months ago by Thymos.
The administrator has disabled public write access.

Re: hide array column 2 years 5 months ago #78546

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1079
  • Thank you received: 239
  • Karma: 76
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

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.

Re: hide array column 2 years 5 months ago #78550

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6318
  • Thank you received: 810
  • Karma: 242
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
The administrator has disabled public write access.
The following user(s) said Thank You: Ben_V

Aw: Re: hide array column 2 years 5 months ago #78560

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

Re: Aw: Re: hide array column 2 years 5 months ago #78627

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.125 seconds
Donation Image