- Posts: 6
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
6 years 5 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.
snag.gy/smYqzV.jpg
snag.gy/BqWUk3.jpg
Please advise.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
6 years 5 months ago #160913
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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:
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.
Attachments:
The topic has been locked.
- mmirasol
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
6 years 5 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
6 years 5 months ago - 6 years 5 months ago #160956
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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).
See manual.limesurvey.org/SGQA_identifier/en
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 5 months ago by tpartner.
The topic has been locked.