hide a question in the printable format

More
3 weeks 2 days ago #160911 by mmirasol
mmirasol created the topic: hide a question in the printable format
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.

Please Log in to join the conversation.

More
3 weeks 2 days ago #160913 by tpartner
tpartner replied the 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:

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

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:

Please Log in to join the conversation.

More
3 weeks 1 day ago #160939 by mmirasol
mmirasol replied the 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.

Please Log in to join the conversation.

More
3 weeks 1 day ago - 3 weeks 1 day ago #160956 by tpartner
tpartner replied the 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).

#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: 3 weeks 1 day ago by tpartner.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!