Welcome to the LimeSurvey Community Forum

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

Hide summary from answerstable

  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121353 by djarnold01
Hide summary from answerstable was created by djarnold01
Hello, I have a summary section in the end of the survey (using SQGA), but when I send all the responses in the print section the summary is inserted too (because it is like other question)

is there any way to prevent that the summary (last question) can be inserted in the answer table or hide it from print section?
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121354 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
If the source code was tweaked a little bit by adding an id tag for each of the question rows, then you could hide them by CSS.
The ID would be filled with the SQGA code of the question / subquestion.

I believe though this wouldn't work for the PDF.
For the PDF, we would need a "printable" attribute in the questions.

So, by standard means, I believe there is no way to do that.

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

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago - 8 years 9 months ago #121355 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
No, I disable the PDF export button, so PDF is not visible

on the part where the PDF button is placed, these part is when I need to prevent my last question (the summary) is inserted

I tried put " #64674320186 {display:none}" in print_template.css (this is the code of my summary question) but I dont know if the code is correct or no
Last edit: 8 years 9 months ago by djarnold01.
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121356 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
If the summary has some kind of fixed string, you could try to select it through JQuery and then hide it.

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

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121357 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
I tried put " #646743X20X186 {display:none}" in print_template.css (this is the code of my summary question) but I dont know if the code is correct or no

could you give me an example of how to do it in jquerry?
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121358 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
Can you send me an example of the current print?

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

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121359 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
ok I attached a PDF of the print table answers


from the "overview" section down is the part that must not appear
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121360 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
Can you please save the contents of your screen as HTML and send me the HTML file?

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

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago - 8 years 9 months ago #121361 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
here is
Last edit: 8 years 9 months ago by djarnold01.
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121362 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
OK, i will try to review it during today.

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

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The following user(s) said Thank You: djarnold01
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago - 8 years 9 months ago #121363 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
This should find the Row with Overview, remove subsequent rows and finally remove the Overview row.
Please put the following code in the printanswers.pstpl

<script type="text/javascript">
$(document).ready(function(){
$overview_row = $( "tr.printanswersgroup td:contains('Overview')" ).parentNode();
$overview_row.nextAll("tr.printanswersquestion").remove();
$overview_row..remove();
});
</script>

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

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

Last edit: 8 years 9 months ago by gabrieljenik. Reason: Edited JQuery script
The topic has been locked.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121364 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
I tried this code but, this message appear after save

Bad Request
The CSRF token could not be verified.

and the code isn't saved
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose