How To Add a Link on Your View to Download a PDF

If you are using Gravity PDF to generate PDF files after form submission, then you can easily add a link to your View to let users download these PDFs.

Watch the Video Tutorial

Required: Gravity PDF

First off, if you haven't already, install the Gravity PDF plugin. You can do this by hovering over Plugins in your WordPress admin, clicking Add New, and searching for it in the plugin directory. 

The Gravity PDF plugin preview in WordPress

After installing Gravity PDF, follow the steps below.

1. Create a New PDF Feed

To create a new PDF feed, hover over Forms and click on Forms. Next, hover over your form, hover over the Settings link, and click on "PDF". To add a new feed, click Add New.

An arrow pointing to the 'Add New' button on the PDF feed page in Gravity Forms

There are plenty of settings here for customizing the look and feel of your PDF files, user permissions, and much more. After configuring the feed, click Add PDF.

2. Copy the Gravity PDF Shortcode

The next step is to add the PDF download link to your View in GravityView. To do this, first copy the Gravity PDF shortcode from the PDF feed page by clicking on the button that says "[/] Copy Shortcode".

The 'Copy Shortcode' button on the PDF feed page

3. Add the Shortcode to a Custom Content Field

Edit your View and add a Custom Content field by clicking the + Add Fields button and selecting Custom Content.

The GravityView Custom Content field

Now, open the Custom Content settings by clicking on the gear icon and paste your Gravity PDF shortcode into the text editor.

A Gravity PDF shortcode inside the Custom Content text editorNow save your View by clicking Update. Open your View on the front end. You'll see a new column containing PDF download links for each one of your entries.

A table View on the front end with a column called 'Download Link' containing PDF download links for each entry in the table

Note: for more information on how GravityView integrates with Gravity PDF, read this article on the Gravity PDF website.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.