hide array column

More
5 years 2 months ago - 5 years 2 months ago #78465 by Thymos
Thymos created the topic: hide array column
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: 5 years 2 months ago by Thymos.

Please Log in to join the conversation.

More
5 years 2 months ago #78546 by Ben_V
Ben_V replied the topic: hide array column
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
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Please Log in to join the conversation.

More
5 years 2 months ago #78550 by DenisChenu
DenisChenu replied the topic: hide array column
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.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: Ben_V

Please Log in to join the conversation.

More
5 years 2 months ago #78560 by Thymos
Thymos replied the topic: Aw: Re: hide array column
thanks!

Please Log in to join the conversation.

More
5 years 2 months ago #78627 by Mazi
Mazi replied the topic: Aw: Re: hide array column

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'"

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now