Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

hide a question in the printable format

  • mmirasol
  • mmirasol's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 3 months ago #160911 by mmirasol
hide a question in the printable format was created by mmirasol
Hello I'm trying to create alternate questions for the printable format because some questions in web version don't make sense to shown in the printed version. I tried putting in 0 and false for the Relevance help for printable survey (en) setting but the question still shows in the printable version.

snag.gy/smYqzV.jpg
snag.gy/BqWUk3.jpg


Please advise.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 3 months ago #160913 by tpartner
Replied by tpartner on topic hide a question in the printable format
Try this (untested) workaround...

1) Give the question a class "print-hidden".


2) Add something like this to the end of print_template.css:

Code:
.print-hidden {
    display: none !important;
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • mmirasol
  • mmirasol's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 3 months ago #160939 by mmirasol
Replied by mmirasol on topic hide a question in the printable format
Thank you. What version of lime was this added in? We are currently using Version 2.6.4-lts. And it doesn't look like css classes are in the question advanced settings.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 3 months ago - 6 years 3 months ago #160956 by tpartner
Replied by tpartner on topic hide a question in the printable format
That is not available in the LTS version.

You'll have to use the question ID as a selector (where 12345 is the question ID).

Code:
#question12345 {
    display: none !important;
}

See manual.limesurvey.org/SGQA_identifier/en

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 3 months ago by tpartner.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose