Welcome to the LimeSurvey Community Forum

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

Send response pdf in email

  • oledole
  • oledole's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 3 weeks ago #189710 by oledole
Send response pdf in email was created by oledole
Hi.

I wanted to know if it is possible to send a response pdf in an email. What I mean is that once a survey has been answered and a response has been saved that response will be sent in an email (either a new one or for example with the admin notification emails). This is similar to the framagit.org/SondagePro-LimeSurvey-plugi...ree/master/pdfReport plugin which let you send the generated pdf as an attachement. This pdf would need to be accessible by someone that is not a limesurvey admin (for example as attachement like the plugin).

Thank you for your time.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
5 years 3 weeks ago #189735 by DenisChenu
Replied by DenisChenu on topic Send response pdf in email
I have a project to allow pdfReport by a twig file automatically with an automatic twig file. But it take a lot of time …

And currently no client.

I think it don't exist a way currently except cretae your own code.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: oledole
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
5 years 3 weeks ago #189763 by gabrieljenik
Replied by gabrieljenik on topic Send response pdf in email
Sorry, don't understand the problem. I have PDF plugins but initially Dennis' plugin looks a good way to go. So, if you could clarify the problem, would be very helpful.

Thanks

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.
  • oledole
  • oledole's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 3 weeks ago #189764 by oledole
Replied by oledole on topic Send response pdf in email
Hi. I'll try to explain.

When a participant finish a survey his response is saved. From what I can see limesurvey can generate PDF from this that you can download from the response page on limesurvey and from print your answer page inside the survey.

What I wanted to do was to send such a generated PDF to a specific email address (for example the admin mail in that survey) as an attachment in an email. It would also be fine if it was a link to the survey or something, but it would need to be accessible for someone that doesn't have access to limesurvey (e.g don't have an admin user).

The plugin I linked does something similar but you need to create your own PDF report in the question text instead of being able to just use the ones Limesurvey already makes. While that is better if we want to customize our reports I wanted to know if there was another way to do it with the generated pdf from limesurvey instead.
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
5 years 3 weeks ago #189776 by gabrieljenik
Replied by gabrieljenik on topic Send response pdf in email
I see. Thanks. Yes, that should be possible with some coding. Contact me at gabriel@encuesta.biz and we can discuss further. What do you think? Thanks

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: oledole
The topic has been locked.
More
4 years 11 months ago #190977 by rickanderson
Replied by rickanderson on topic Send response pdf in email
Hi...

I am looking for some similar functionality. Once the survey is complete the results are used to generate a report in the 'End Message'. This html page is successfully converted to a PDF using the 'html2pdf.js' script. I wondered if there is some way to include an input field on this End Message report page with a button that will likewise encode the PDF and attach to an email which is then sent to the email address in the input field. Is there an Email Method within LimeSurvey which will facilitate this?

Cheers...Rick.
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
4 years 11 months ago #190978 by gabrieljenik
Replied by gabrieljenik on topic Send response pdf in email

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: rickanderson
The topic has been locked.
More
4 years 11 months ago #190979 by rickanderson
Replied by rickanderson on topic Send response pdf in email
Hi Gabriel...thanks for the speedy response!

As things stand I am able to successfully generate the PDF and have included a button to prompt the user to download which also works fine. This looks like what pdfReport would do for me? I would like to be able to include this PDF as an attachment to a user-supplied email address. I believe I can use 'html2PDF' to convert the PDF to a Data URI String as per this code (from html2PDF support):

Code:
html2pdf().from(element).toPdf().output('datauristring').then(function (pdfAsString) {
    // The PDF has been converted to a Data URI string and passed to this function.
    // Use pdfAsString however you like (send as email, etc)! For instance:
    console.log(pdfAsString);
});

I would like to know if there is email functionality within LimeSurvey to enable the attachment of this to an email being sent to the user-supplied email address? Wasn't sure from your link if pdfReport would add this capability.

Cheers...Rick.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 years 11 months ago #190994 by DenisChenu
Replied by DenisChenu on topic Send response pdf in email

rickanderson wrote: I would like to know if there is email functionality within LimeSurvey to enable the attachment of this to an email being sent to the user-supplied email address? Wasn't sure from your link if pdfReport would add this capability.
.

Best is to test : pdfReport is done to
1. Save pdf inside survey
2. Send (optionnaly) the pdf to an email (generated with Expression)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: rickanderson
The topic has been locked.
More
4 years 11 months ago #191007 by rickanderson
Replied by rickanderson on topic Send response pdf in email
Thanks both Denis and Gabriel.

I'll look into what I can do with pdfReport.

Cheers...Rick.
The topic has been locked.
More
4 years 11 months ago #191034 by rickanderson
Replied by rickanderson on topic Send response pdf in email
Hi again Denis...quick question re pdfReport.

What version of LimeSurvey do i need to be running to use pdfReport? I am currently running v3.19.3.

I uploaded the pdfReport files to the plugin directory and added a 'File Upload' type question but don't see where I Activate pdfReport (Activate pdfReport : Use this question as pdf report. to Yes).

Cheers

...Rick.
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
4 years 11 months ago #191036 by gabrieljenik
Replied by gabrieljenik on topic Send response pdf in email
Great, let me know if you need some custom PDF solutions. Thanks!

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.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose