Welcome to the LimeSurvey Community Forum

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

hide a question in the printable format

More
7 years 9 months ago #160911 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.
More
7 years 9 months ago #160913 by tpartner
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.
More
7 years 9 months ago #160939 by mmirasol
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.
More
7 years 9 months ago - 7 years 9 months ago #160956 by tpartner
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 www.limesurvey.org/manual/SGQA_identifier/en

Cheers,
Tony Partner

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

Lime-years ahead

Online-surveys for every purse and purpose