Welcome, Guest
Username: Password: Remember me

TOPIC: Only appear on printed version

Only appear on printed version 3 years 5 months ago #60079

  • Mike1985
  • Mike1985's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 49
  • Karma: 0
Here's one...

Can you edit your answer options so that text next to it (ie "Go to Question 3" meaning to skip question 2) only appears on the printed version.

I'm asking because my customer wants printed versions of all the surveys and they're not keen on the 'conditions' and 'senarios' bit that prints out. Maybe that's confusing hopefully my attachment will clarify things.

Is there some "only show on print version" in the CSS that LimeSurvey uses?
Attachments:
The administrator has disabled public write access.

Re: Only appear on printed version 3 years 5 months ago #60082

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4207
  • Thank you received: 791
  • Karma: 360
Try this:

1) Wrap thge insructional text in a a span with a class of "printOnly". So the source of the answer would be something like:
No <span class="printOnly">[Go to question 11]</span>

2) Hide the span(s) in the online survey - add the following to the end of template.css:
.printOnly {
	display: none;
}

3) Show the span(s) in the printed survey - add the following to the end of print_template.css:
.printOnly {
	display: inline;
}
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Only appear on printed version 3 years 5 months ago #60085

  • Mike1985
  • Mike1985's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 49
  • Karma: 0
D'oh! I should have figured that one out. But that does the job perfectly thank you. tpartner - you are wise!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.107 seconds
Donation Image