Welcome, Guest
Username: Password: Remember me

TOPIC: Hide questions from printing?

Hide questions from printing? 3 years 4 months ago #61489

  • bwoo5
  • bwoo5's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 80
  • Thank you received: 4
  • Karma: 0
I have a survey where the first question has the user put in a code. Based on the code they put in I have a "text display question" show them who they are rating.
ex. code 1 = tom, code 2= me, code 3=bob

In the end when they print the answer, I do not want it to print out all 3 "text display questions".
Is there a way to hide certain questions from printing, or another way I can show them who they are rating?

Thanks.
The administrator has disabled public write access.

Re: Hide questions from printing? 3 years 4 months ago #61498

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1122
  • Thank you received: 255
  • Karma: 79
You have to know the code intertrans of the question or look into the source code to know the id of the question ex. id="XXX123456789"

After you have to edit the print_template.css file adding:
#XXX123456789 {display:none}
(remember: you can't edit LS original themes so you have to duplicate the template before )

That's all
Ben
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.

Re: Hide questions from printing? 3 years 4 months ago #61500

  • bwoo5
  • bwoo5's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 80
  • Thank you received: 4
  • Karma: 0
I am wanting to hide these in the print answers page. What is the quickest way to view the source code and find the id of these questions? And can i put the #XXX123456789 {display:none} anywhere in the print answers page code?

Thanks again =)
The administrator has disabled public write access.

Re: Hide questions from printing? 3 years 4 months ago #61507

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4281
  • Thank you received: 807
  • Karma: 370
Question ID - docs.limesurvey.org/SGQA+identifier&stru...#General_Description

So, the rules in print_template.css would look something like:
#question1,
#question2,
#question3 {
	display: none;
}
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: Hide questions from printing? 2 years 9 months ago #72662

  • bnorris
  • bnorris's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 24
  • Karma: 0
I too would like to hide non chosen answers from printing at the end of the survey
The administrator has disabled public write access.

Re: Hide questions from printing? 2 years 9 months ago #72683

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4281
  • Thank you received: 807
  • Karma: 370
I don't think that is possible with CSS. It would require extensive modifications to printanswers.php.
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: Hide questions from printing? 2 years 9 months ago #72690

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
Irrelevant questions are not shown in print answers (at least in 1.92), but any question that is shown (relevant) is included so that people can see what was not answered. That isn't quite what you are asking, but it does reduce the size of print answers considerably.
The administrator has disabled public write access.

Re: Hide questions from printing? 2 years 9 months ago #72701

  • bnorris
  • bnorris's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 24
  • Karma: 0
TMSWhite wrote:
Irrelevant questions are not shown in print answers (at least in 1.92), but any question that is shown (relevant) is included so that people can see what was not answered. That isn't quite what you are asking, but it does reduce the size of print answers considerably.

I just installed from the site version 191 just a day or two ago. Also just did an update this morning but ALL of the questions show in the print survey, even ones not checked. Any suggestions?
The administrator has disabled public write access.

Re: Hide questions from printing? 2 years 9 months ago #72726

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
bnorris, Tom was talking about the upcoming 1.92 version. This features doesn't yet exist at 1.91.
You can download 1.92 for testing here: sourceforge.net/projects/limesurvey/file...y_unstable/1.92_RC2/

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Hide questions from printing? 2 years 9 months ago #72734

  • bnorris
  • bnorris's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 24
  • Karma: 0
Mazi wrote:
bnorris, Tom was talking about the upcoming 1.92 version. This features doesn't yet exist at 1.91.
You can download 1.92 for testing here: sourceforge.net/projects/limesurvey/file...y_unstable/1.92_RC2/

Is is fully functional? A beta?
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.127 seconds
Donation Image