How To Generate & Download a PDF file at the end of CAWI Surveys

Overview

In this guide we will describe how to generate a PDF file that can be downloaded at the end of the survey and which can include answers that were collected during the interview.

Steps

  1. In the sample: At the end of Q3 you will find the code that is setting the page text and creating the PDF.
  2. In the CAWI tab - Web properties options - un-check the 'Use Defaults'
    mceclip1.png

  3. Check the option called 'My HTML' and then 'Edit'
    mceclip2.png

  4. Choose the 'Show HTML Source' and move to the HTML source tab and paste the code below:
    function myFunction() { alert('Yes'); var docDefinition = { content: 'This is an sample PDF printed with pdfMake' }; pdfMake.createPdf(docDefinition).download(); alert('No'); } </SCRIPT><BUTTON onclick=myFunction()>Click me</BUTTON> mceclip0.png
  5. Click on the Design tab and you should see the following.
    mceclip3.png
  6. Click OK and save the changes. 
  7. Generate a respondent link and run, when done on the finish page you will see the below page with a button called 'Download As PDF' mceclip0.png
  8. Click on it to download the generated PDF file and open it - the file will include the Name & Age you entered in the surveymceclip1.png

Please Click here to learn how to import the sample survey into your organization.

Please Note: The attached survey is a basic example which was created using the below website - https://github.com/bpampuch/pdfmake
You can use the sample and add additional information to the file downloaded such as links, images etc. 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.