Version: v5

Basic GravityView Support is Built-in to Gravity PDF

The GravityView plugin is the best way to display Gravity Forms entries publicly on your website. Basic GravityView support is built right into Gravity PDF.

Add PDF Download Link to View

You can easily add PDF Download links to your View. To do this you'll need to use GravityView's Custom Content Field. Go edit your View in the admin area, click the + Add Field button in the Multiple Entries or Single Entry tab, and click Custom Content. Next, go to your form's Manage PDF page, copy the [gravitypdf] shortcode in the list and paste it into the View's Custom Content Field. Save the View and go check if it's working.

Adding a Gravity PDF shortcode to GravityView's Custom Content field Adding a Gravity PDF shortcode to GravityView's Custom Content field.

The PDF Download links added to a GravityView table The PDF Download links added to a GravityView table

Because of Gravity PDF's security, by default access to the PDFs is restricted to the entry owner or users with a capability found in the User Restriction setting. That means that you'd need to:

  1. Using GravityView's Advanced Filter extension to show the entries from the current logged in user.

  2. Using a Membership plugin that allows you to show/hide content based on user roles (Paid Memberships Pro comes to mind). You can display the GravityView to a user with a Role that includes one of the capabilities found in Gravity PDF's User Restriction setting – by default, this is only the Administrator role. Not sure what Roles and Capabilities are? Here's a great article from WPShout discussing the finer points.

Public Access

If you'd like anyone with access to your View to securely download the PDF(s), you can take advantage of signed PDF URLs introduced in Gravity PDF 5.1. Just amend the [gravitypdf] shortcode added to the Custom Content Field and include the signed="1" attribute:

[gravitypdf name="Default Template" id="56ea5a3b2c684" text="Download PDF" signed="1"]

Last updated on