- Posts: 8
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Use limeMpdf for printing surveys
- thomasjanotta
- Topic Author
- Offline
- New Member
Where do I have to change the generated link to the pdf?
<form action="index.php/printanswers/view?surveyid=675884&amp;printableexport=pdf" method="post">
This is now generated by the default printanswer_head.twig
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13597
- Thank you received: 2487
It does nothing by itself.
Exemple of usage : gitlab.com/SondagesPro/ExportAndStats/pd...r/pdfReport.php#L540
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12881
- Thank you received: 3965
you only have to upload "pdfreport" and "limeMpdf" to the plugin folder.
Then you have this option in "pdfreport"
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- thomasjanotta
- Topic Author
- Offline
- New Member
- Posts: 8
- Thank you received: 0
I installed limeMpdf and pdfReport and activated it, but WHERE is this menu?
I don't have it in the question (I suggested it).
hmmm
Thanks
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12881
- Thank you received: 3965
you know that you use a question of type "file upload" for "pdfreport"?
And here you find it.
Joffm
And this?
I have no idea what you tried to do here. Not necessary at all.I copied the twig (header, body, ffoter) files to my custom theme "upload/themes/survey/extends_fruity/views/subviews/mpdf".
Volunteers are not paid.
Not because they are worthless, but because they are priceless
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13597
- Thank you received: 2487
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- thomasjanotta
- Topic Author
- Offline
- New Member
- Posts: 8
- Thank you received: 0
RTFM
OK, i got it by looking at the demo. Unfortunately Dennis doesn't show how to 'simply' display Q and A like
{Q00001_SQ001.question}:{Q00001_SQ001.shown}
But now I am looking for code for groupname, everyone is writing books but noone writes the simple answer (as for Q: Q00001_SQ001.question).
Is this really the only way, besides writing the Group name 'manually'...
forums.limesurvey.org/forum/can-i-do-thi...ion-group-in-tempate
@joffm:
the limempdf help says that you should copy these twigs to [/upload/...custom_templ/mpdf] for editing it...
Thanks. Danke.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13597
- Thank you received: 2487
Not related to plugin manual.limesurvey.org/Expression_Managerthomasjanotta wrote: OK, i got it by looking at the demo. Unfortunately Dennis doesn't show how to 'simply' display Q and A like
Code:{Q00001_SQ001.question}:{Q00001_SQ001.shown}
But now I am looking for code for groupname, everyone is writing books but noone writes the simple answer (as for Q: Q00001_SQ001.question).
gitlab.com/SondagesPro/coreAndTools/limeMpdf#adapt-html-and-cssthomasjanotta wrote: the limempdf help says that you should copy these twigs to [/upload/...custom_templ/mpdf] for editing it...
Only if needed
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- thomasjanotta
- Topic Author
- Offline
- New Member
- Posts: 8
- Thank you received: 0
DenisChenu wrote:
Not related to plugin manual.limesurvey.org/Expression_Managerthomasjanotta wrote: OK, i got it by looking at the demo. Unfortunately Dennis doesn't show how to 'simply' display Q and A like
Code:{Q00001_SQ001.question}:{Q00001_SQ001.shown}
But in the ES - questions with subquestions
manual.limesurvey.org/ExpressionScript_examples
Yes, when you want to adopt to the company design, you have toDenisChenu wrote:
gitlab.com/SondagesPro/coreAndTools/limeMpdf#adapt-html-and-cssthomasjanotta wrote: the limempdf help says that you should copy these twigs to [/upload/...custom_templ/mpdf] for editing it...
Only if needed
Still looking for groupname.
Thanks
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13597
- Thank you received: 2487
Expression Script === Expression Manager, just name update.thomasjanotta wrote:
DenisChenu wrote:
Not related to plugin manual.limesurvey.org/Expression_Managerthomasjanotta wrote: OK, i got it by looking at the demo. Unfortunately Dennis doesn't show how to 'simply' display Q and A like
Code:{Q00001_SQ001.question}:{Q00001_SQ001.shown}
But in the ES - questions with subquestions
manual.limesurvey.org/ExpressionScript_examples
Only manual way …thomasjanotta wrote: Still looking for groupname.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- thomasjanotta
- Topic Author
- Offline
- New Member
- Posts: 8
- Thank you received: 0
- Joffm
- Offline
- LimeSurvey Community Team
- Posts: 12881
- Thank you received: 3965
here a simple demo.
<section><h1>Teil I</h1> <h2>Bekanntheit</h2> {if(Q1_1=="Y","<checkbox-checked>","<checkbox>")} {Q1_1.question}<br /> {if(Q1_2=="Y","<checkbox-checked>","<checkbox>")} {Q1_2.question}<br /> {if(Q1_3=="Y","<checkbox-checked>","<checkbox>")} {Q1_3.question}<br /> {if(Q1_4=="Y","<checkbox-checked>","<checkbox>")} {Q1_4.question}<br /> {if(Q1_5=="Y","<checkbox-checked>","<checkbox>")} {Q1_5.question}<br /> {if(Q1_6=="Y","<checkbox-checked>","<checkbox>")} {Q1_6.question}<br /> {if(Q1_7=="Y","<checkbox-checked>","<checkbox>")} {Q1_7.question}<br /> {if(Q1_8=="Y","<checkbox-checked>","<checkbox>")} {Q1_8.question}<br /> </section> <section> <h2>Welches dieser Tiere haben Sie als Letztes gegessen?</h2> {if(Q1_1.NAOK!="Y","",if(Q2==1, "<radio-checked> "+Q1_1.question,"<radio> "+ Q1_1.question))} {if(Q1_1.NAOK=="Y","<br />","")} {if(Q1_2.NAOK!="Y","",if(Q2==2, "<radio-checked> "+Q1_2.question,"<radio> "+ Q1_2.question))} {if(Q1_2.NAOK=="Y","<br />","")} {if(Q1_3.NAOK!="Y","",if(Q2==3, "<radio-checked> "+Q1_3.question,"<radio> "+ Q1_3.question))} {if(Q1_3.NAOK=="Y","<br />","")} {if(Q1_4.NAOK!="Y","",if(Q2==4, "<radio-checked> "+Q1_4.question,"<radio> "+ Q1_4.question))} {if(Q1_4.NAOK=="Y","<br />","")} {if(Q1_5.NAOK!="Y","",if(Q2==5, "<radio-checked> "+Q1_5.question,"<radio> "+ Q1_5.question))} {if(Q1_5.NAOK=="Y","<br />","")} {if(Q1_6.NAOK!="Y","",if(Q2==6, "<radio-checked> "+Q1_6.question,"<radio> "+ Q1_6.question))} {if(Q1_6.NAOK=="Y","<br />","")} {if(Q1_7.NAOK!="Y","",if(Q2==7, "<radio-checked> "+Q1_7.question,"<radio> "+ Q1_7.question))} {if(Q1_7.NAOK=="Y","<br />","")} {if(Q1_8.NAOK!="Y","",if(Q2==8, "<radio-checked> "+Q1_8.question,"<radio> "+ Q1_8.question))} {if(Q1_8.NAOK=="Y","<br />","")} </section> <section> <h2>Bitte bewerten Sie den Geschmack von {Q2.shown}</h2> {if(Q3b==1,"<radio-checked>","<radio>")} ziemlich eklig<br /> {if(Q3b==2,"<radio-checked>","<radio>")} der Hunger treibt's rein<br /> {if(Q3b==3,"<radio-checked>","<radio>")} geht so<br /> {if(Q3b==4,"<radio-checked>","<radio>")} ganz lecker<br /> {if(Q3b==5,"<radio-checked>","<radio>")} super toll<br /> <br /> <pagebreak> <table class="table table-bordered"> <thead> <tr class="tablehead"> <th style="width:25%">#</th> <th class="tablecenter" style="width:15%">ziemlich eklig</th> <th class="tablecenter" style="width:15%">der Hunger treibt's rein</th> <th class="tablecenter" style="width:15%">geht so</th> <th class="tablecenter" style="width:15%">lecker</th> <th class="tablecenter" style="width:15%">super toll</th> </tr> </thead> <tbody> <tr> <th>{Q2.shown}</th> <td class="tablecenter">{if(Q3b.NAOK==1,"<radio-checked>","<radio>")}</radio></radio-checked></td> <td class="tablecenter">{if(Q3b.NAOK==2,"<radio-checked>","<radio>")}</radio></radio-checked></td> <td class="tablecenter">{if(Q3b.NAOK==3,"<radio-checked>","<radio>")}</radio></radio-checked></td> <td class="tablecenter">{if(Q3b.NAOK==4,"<radio-checked>","<radio>")}</radio></radio-checked></td> <td class="tablecenter">{if(Q3b.NAOK==5,"<radio-checked>","<radio>")}</radio></radio-checked></td> </tr> </tbody> </table> </section>
Just put it into the question code.
I only had thi syntax file, not the survey itself. I created a quick and dirty one.
And
Why should he? It's all here:Unfortunately Dennis doesn't show how to 'simply' display Q and A like
{Q00001_SQ001.question}:{Q00001_SQ001.shown}
manual.limesurvey.org/ExpressionScript_-...#Access_to_variables
And to come back to my question.
In my opinion these folders are included in the plugin already.
In "lime\plugins\limeMpdf\views\subviews\mpdf"
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless