Setting Up PDF Generation
To generate a PDF when a form is submitted, you need to create a Fillable PDFs feed. This feed tells Fillable PDFs what to do with the submitted form entry to generate the PDF.
Creating a Fillable PDFs Feed
- Go to the Form Settings page on the form you want to generate a PDF for and click on the Fillable PDFs tab.
- Click the Add New button to create a new Fillable PDFs feed.
Selecting a PDF Template
When creating a new Fillable PDFs feed, you are presented with two settings: the feed name and the template selector.
Enter in a feed name that unique identifies this PDF configuration.
Select the template you added in the previous step from the drop down.
After you’ve selected the template, you’ll see a preview of the first page of your template beneath the drop down along with a couple new settings.
Using the File Name setting, you can set the name of the generated PDF file.
In the Notifications setting, you can choose which notifications to have the generated PDF automatically attached to.
You can also configure conditional logic to set when the feed is run.
Mapping PDF Fields
Now, we need to map our Gravity Forms fields to our PDF template. Click the Open Mapper button next to the template drop down.
Your screen will now be filled with the visual template mapper. Each page of your PDF will be displayed with all the available PDF fields highlighted.
To map a Gravity Forms field to a PDF field, simply click on the highlighted field. A popover will appear allowing you to select which Gravity Forms field to map. You can also map Gravity Forms entry meta or a custom value using merge tags.
If you map a PDF field to a File Upload field, you’ll have the option to automatically embed the uploaded image into that PDF field. Signatures will automatically be embedded into mapped PDF fields.
Mapping fields with multiple choice inputs, like Checkbox and Radio Button fields, can sometimes require extra setup. Refer to the following articles for how to map to those field types:
Once you’ve mapped all your Gravity Forms fields to your PDF template, click the X in the top right corner of the modal to exit the visual template mapper.
You can click on the Advanced tab to configure additional settings for the generated PDF.
The User and Admin Password settings will set a required password to view or make changes to the PDF, respectively.
The File Permissions setting allows you to control what the end user can do with the PDF, including if they can print, modify or copy it.
The Enable Public Access setting defines if anyone who accesses the download link can download the generated PDF.
You can also choose to remove interactive form fields from the PDF, preventing the end user from making any modifications to the data entered.