hide array column

More
4 years 11 months ago - 4 years 11 months ago #78465 by Thymos
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 11 months ago by Thymos.

Please Log in to join the conversation.

More
4 years 11 months ago #78546 by Ben_V
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
4 years 11 months ago #78550 by DenisChenu
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).
The following user(s) said Thank You: Ben_V

Please Log in to join the conversation.

More
4 years 11 months ago #78560 by Thymos
thanks!

Please Log in to join the conversation.

More
4 years 11 months ago #78627 by Mazi

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.