Welcome to the LimeSurvey Community Forum

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

Hide summary from answerstable

  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121365 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
I am sorry I didn't mention it.. you have to use the template editor to add the code.
Where did you added?

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 #121366 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
In the template editor, print answers table and printanswers.pstpl after {ANSWERSTABLE}


the error appears when I try to save the pstpl file
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 #121367 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
OK, the JQuery lib is not present for PrintPage.

Try this:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var $overview_row = $( "tr.printanswersgroup td:contains('Overview')" ).parent();
$overview_row.nextAll("tr.printanswersquestion").remove();
$overview_row.nextAll("tr.printanswersgroup").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 .

The topic has been locked.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121368 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
sorry!!!

same error with this code
The topic has been locked.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121369 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
Is like a ping timeout trying save this code
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121385 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
Strange, it works good on my end... can you provide a screenshot of the error?

Maybe we can go skype and share screens on monday?

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 #121425 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
Could it be a problem that my virtual server does not have internet access?
Send me a private message with your skype user to add you as soon as possible
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 9 months ago #121426 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
Internet Access! Yes, in the script I grab the latest JQuery Lib from a CDN.
I will write some new code for you to grab it from the FS.

Cheers

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 #121427 by gabrieljenik
Replied by gabrieljenik on topic Hide summary from answerstable
Sorry, I just re-read the message.

You are having the error when updating the template...
There must be something else..

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 #121428 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
Yes, I put the code in the pstpl, click save and nothing happens
I need to reload the page but the changes is not reflected.
The topic has been locked.
More
8 years 9 months ago - 8 years 9 months ago #121430 by Ben_V
Replied by Ben_V on topic Hide summary from answerstable
Hi
If you want to hide a specific row of a table, you can try a CSS :nth-child pseudo-class approach...
Add this simple code to your template; Adapt if necessary.
Code:
.printouttable tr:last-child { display:none}

Dont' forget to clear your browser cache before testing.

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: 8 years 9 months ago by Ben_V.
The topic has been locked.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121431 by djarnold01
Replied by djarnold01 on topic Hide summary from answerstable
Thanks, finally with this CSS works now
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose