Create PDF Copies of Completed Forms

Digitise Forms includes the ability to create and display a PDF copy of a completed form.

A PDF copy can be created automatically or on demand and is saved to a specified folder from where it can be displayed in the user's browser, allowing the user to save or print the PDF copy, if required.

  • You can create a PDF copy of a form where elements on the form are mapped to different Datasources, provided the Store Request Data option is selected for each Datasource within the form's Publishing Profile. Also, the Is Visible in PDF option needs to be selected for elements which you wish to include within the PDF (see the Map Data to Elements topic for more details). If either the Store Request Data or Is Visible in PDF options are deselected, the elements will not be visible within the PDF.

 

The PDF copy can be created automatically when a user submits the form. This would normally be done through a Submit Button on your form or by calling the submitForm function within custom JavaScript, but if you are using the Capita Pay360 payment service to take payment for goods or services, you can submit the form as part of the payment process. However the form is submitted, when you publish your form you can optionally specify that you want a PDF copy of the form to be created automatically whenever the form is submitted and specify a folder to hold the PDF files.

To allow the user to create a PDF copy on demand and to download it to their browser, you will need to provide a way for the user to submit the form and include a Get PDF Button Element on the form. You also need to specify a folder to hold the PDF files, which you do when you publish your form.

The Get PDF Button Element, checks in your specified PDF files folder to see if there is a PDF file created by the current copy of the form and, if there is one, downloads it to the user's browser, from where the user can use the browser's own features to save or print the form, if they want to.

If no PDF file exists, the button creates it from the last form submission, stores it in the PDF files folder and then downloads it to the user's browser. If the form hasn't yet been submitted an error message will be displayed telling the user that they need to submit the form before they can download the PDF copy.

 

In order to create PDF copies from a form, you first need to create a template, within Form Studio, which will provide the format of the document, and then configure the Publishing Profile to create PDF files.

 

Now, if you selected automatic creation of PDF files, whenever the form is submitted, a PDF copy of the completed form will automatically be created and saved to your specified folder. If you didn't specify automatic creation, a PDF file will be created when a user clicks or taps the Get PDF Button.

 

You can check whether a PDF template has been created for a form, by checking the form's PDF Mappings and PDF Template properties.