How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (2024)

Gravity Flow -

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (1)By Colin NewcomerPublished October 3, 2022

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (2)

Need to generate a PDF after someone submits a form with Gravity Forms?

There are a lot of reasons you might want to generate a PDF after form submission, including both delivering a PDF file to the person who submitted the form or generating a PDF for your own internal records.

To easily set up this functionality in WordPress, you can pair Gravity Forms with Gravity Flow (which is now a Gravity product).

In this step-by-step tutorial, you’ll learn exactly how you can generate a PDF from a form that you’ve created with Gravity Forms.

Let’s dig in!

How Does Gravity Flow Help You Generate PDFs?

If you’re not familiar with Gravity Flow, it’s an automation tool that helps you set up all sorts of different workflows based on the forms that you’ve built with Gravity Forms.

You can use it for a bunch of different stuff. But for the purposes of this post, we’re interested in one of its automations – the ability to generate a PDF as part of a workflow.

Basically, this lets you take some or all of the form data from a submission and turn it into a formatted PDF. Here’s an example of what a generated PDF might look like:

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (3)

The simplest option is to just generate the PDF immediately after someone submits a form, which is the use case that we’ll cover in the tutorial below.

However, the cool thing about Gravity Flow’s workflow-based approach is that you can wait to include PDF generation as part of a later step.

Here’s an example:

Instead of generating the PDF immediately after the form, you could first send an email to an administrator to approve or reject the form submission. You could then only generate the PDF if the admin approves the submission.

In real-world terms, that could work something like this:

  • Someone submits a request to book a meeting with you.
  • You receive a message to approve/deny the meeting.
  • If you approve the meeting, Gravity Flow automatically sends the person a PDF confirmation/receipt.

Once you learn the basic PDF generation steps in the tutorial below, you can start digging into Gravity Flow’s other features to start setting up these types of multi-step automations for your business.

How to Generate a Gravity Forms PDF After Form Submission

Now, let’s get into the step-by-step guide for how to generate PDFs from Gravity Forms using the Gravity Flow plugin.

To follow this tutorial, you’ll need a minimum of three plugins:

  1. The Gravity Forms plugin – purchase it here.
  2. The core Gravity Flow plugin – purchase it here.
  3. The official PDF Generator extension for Gravity Flow – purchase it here.

You also might want to install some other Gravity Forms add-ons to extend your forms in other useful ways. However, the three plugins above are all you need for basic PDF generation.

Once you’ve verified that you’ve installed everything, here’s how to set up everything…

1. Set Up Your Form

If you haven’t already done so, the first step in the process is to set up the form that you’ll use to generate the PDF file.

That is, the information that you collect via this form will be what you include in the finished PDF file.

If you already have a form in mind, you can skip ahead to the next step.

If not, head to Forms → New Form to create your form. Or, feel free to import one of the pre-built Gravity Forms templates to save some time.

For this example, we’re using the Event Registration template, but you can generate a PDF from literally any type of form.

Here’s what it looks like:

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (4)

2. Open the Workflow Settings

Once you’re happy with the fields and design of your form, you can dig into your “workflow” settings, which is where you can configure Gravity Flow to generate a PDF, along with other workflow steps.

To open these settings, go to Settings → Workflow:

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (5)

3. Create Your PDF Workflow Step

Now, you should see an empty list of workflow steps.

To create your first step, click the Add New button:

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (6)

At the top, give your step an internal name to help you remember it – e.g. “Generate PDF for Form Submitters”. You might create a different step to generate a PDF for admins that uses a different template, so this can be helpful to differentiate them.

Below that, make sure to choose PDF under Step Type, which will expand some additional PDF-related options.

Finally, you also get two other important settings in the Step box:

  • Condition – set up conditional logic rules to control when to execute this workflow. For example, you could add a form field to let users choose whether or not they want to generate a PDF and then only create the PDF if a user chose to.
  • Schedule – if needed, you can wait to generate the PDF on a certain schedule. For example, you could send people the PDF via email 24 hours after they submit the form. More on attaching the PDF to emails in a second.

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (7)

4. Configure PDF Template

Once you choose PDF as the Step Type, you should see a new PDF settings box appear below the Step settings box at the top of the page.

To start, you can use the Template box to choose what form fields to include in your PDF, using the standard Gravity Forms merge tags.

The simplest option here is to just use the {all_fields} merge tag to insert all of the information from the form.

However, if you want more control, you can use the merge tags for individual form fields, along with your own custom content if needed.

You can also use the <pagebreak /> tag to add page breaks to your PDF and split it into multiple pages.

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (8)

Gravity Flow will also add some of its own styling to ensure that the PDF looks nice and is easy to read.

For example, here’s what the default design looks like for the Event Registration form using just the {all_fields} merge tag:

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (9)

Note – if you need to actually fill field information into an existing PDF document, you might be interested in the Fillable PDFs Certified Add-On instead.

5. Choose How to Deliver PDF to User(s)

Gravity Flow offers two main ways to deliver/access the generated PDFs:

  • Attach to email – you can attach the generated PDF to an email that you send to any user (including the form submitter).
  • Download link via merge tag – you can add a merge tag to the form confirmation, form notifications, or other areas that accept merge tags.

You can also access the download link without using merge tags if needed – more on that at the bottom of the section.

Attach PDF to Email

To attach your PDF file to an email, check the box to Send by email. Then, you can use the additional options to make the following choices:

  • Choose who to send the email to.
  • Configure the subject, “From” name, and body of the email.
  • Create a custom file name for the PDF attachment. You can use merge tags to dynamically generate a unique file name for each PDF.

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (10)

Note – if you choose to send the PDF via email attachment, the file will be deleted from your server once the email is sent. If you want to keep a version of the PDF on your server, it would be a better option to just include the download link instead of attaching the file itself.

Include Download Link Using Merge Tags

The other option to deliver the PDF is to use merge tags to include a direct download link to the PDF.

You can use these pretty much anywhere that accepts Gravity Forms merge tags, but the two most common spots would be:

  1. In the confirmation message that displays on your website. You can set these up by going to Settings → Confirmations in your form.
  2. In the notifications that Gravity Forms sends via email (or other channels such as Slack). You can set these up by going to Settings → Notifications in your form (or other areas if you’re using add-ons to send different types of notifications).

You have two merge tags:

  • {workflow_pdf_download_link} – inserts a clickable download link, along with some additional options for controlling access.
  • {workflow_pdf_download_url} – inserts just the raw URL to the PDF file on your server. For example, you could use this if you want to design a custom button instead of just showing a raw link.

The download link merge tag further supports the following optional attributes:

  • text – customize the text. The default is “Download PDF”.
  • signed – when enabled, this will override any permissions checks for letting the user download the PDF.
  • expires – expire the link after a certain time (requires the signed attribute).

For example, to display a download link in the confirmation message that appears after a user submits the form, you could do something like this:

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (11)

Construct Download Link Without Merge Tags

Alternatively, you can also construct a download link without using merge tags by using the following format:

yoursite.com/?gravityflow-pdf-entry-id=2

Make sure to replace the ID number with the actual ID of the form entry for which you want to download the PDF.

6. Publish Your Workflow Step (and Repeat As Needed)

Once you’ve configured everything, make sure to save your step’s settings by clicking Update Step Settings at the bottom.

Now, your form should start generating PDFs according to your settings after a user submits the form.

For further customization, you can explore adding in other Gravity Flow workflow steps as we discussed above. Here are some case studies of how real businesses use Gravity Flow’s automation features.

Start Generating PDFs from Gravity Forms Today

That wraps up our tutorial on how to use Gravity Flow to generate a PDF from a form that you’ve created with Gravity Forms.

If you’re not already a Gravity Forms and Gravity Flow user, you can get started by following these steps:

  1. Purchase Gravity Forms,
  2. Purchase Gravity Flow,
  3. and the PDF Generator extension.

Then simply follow the tutorial above and remember to test your workflow once created to check it’s fully functional!

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (12)
If you want to keep up-to-date with what’s happening on the blog sign up for the Gravity Forms newsletter!

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission (2024)

FAQs

How to Use Gravity Forms and Gravity Flow to Generate PDFs After Form Submission? ›

Once you're happy with your form, navigate to this form's settings and select Workflow. Next, you'll want to create a Workflow step so that you can configure what actions Gravity Flow will take when the form is submitted, such as generating a PDF. Select 'Add New' and then give your step a descriptive name.

How to create a PDF with Gravity Forms? ›

The basic plugin is free, so all you need to do is log into your WordPress site, hover over Plugins, click Add New and search for “Gravity PDF”. After installing Gravity PDF, navigate to your Form and click on Form Settings. Here you'll see a new tab called “PDF” which allows you to configure new PDF exports.

How do I export Gravity Form entries to PDF? ›

Our recommendation: the Entry Automation plugin for Gravity Forms. With the Entry Automation for Gravity Forms WordPress add-on, you can automatically export your Gravity Forms entries on any schedule you like. You can choose to schedule form data to be exported to PDF or other formats like CSV, Excel, or JSON.

How do you extract Gravity Form data? ›

Exporting forms from Gravity Forms

First, log into your WordPress website, then hover over “Forms” in the left-hand menu and click on “Import/Export”. Next, click on the “Export Forms” tab on the left, choose the form you want to export, and click on the “Download Export File” button.

How do you save and continue entries in Gravity Forms? ›

How Save and Continue Works. The Save and Continue functionality within Gravity Forms will create a link for continuing the form at a later date. Upon clicking the link in the form, the user will be presented with a custom link to the current state of their form submission, with the option of sending the link via email ...

How do I make a PDF generator? ›

Here's how to create PDF file online using DocFly's online PDF creator in 3 easy steps:
  1. Upload PDF file. Drag your file on to the dropzone above, or click Upload to choose a file from your computer.
  2. Create PDF. Once your file is uploaded, create PDF using DocFly's online PDF creator. ...
  3. Download file.

How do I convert G Docs to PDF? ›

How to make a Google Doc a PDF file
  1. Open your file in Google Docs.
  2. Click on File > Download.
  3. In the menu, select PDF Document (. pdf) as your output format.
  4. Save the new PDF file to your computer.
Feb 6, 2024

How do I export form data to PDF? ›

Export file data
  1. In Acrobat, open the completed form file.
  2. From the All tools menu, select Prepare a form and then from the left panel that opens, select > Export data.
  3. In the Export Form Data As dialog box, select the format (FDF, XFDF, XML, or TXT) in which you want to save the form data.
Oct 30, 2023

Can I export entries from Gravity Forms? ›

With GravityExport you can export your Gravity Forms data to Excel, CSV, or PDF using a secure, shareable download link. You can send data reports to a local folder, your Dropbox, or an external server using SFTP – reports will automatically update as you receive new entries.

Where does Gravity Form data go? ›

ALL of the data received via your form submissions is stored in tables in your own WordPress database on your own hosting provider.

How do I Import data from Gravity Forms? ›

Importing forms to Gravity Forms

To import a form, hover over “Forms” in your WordPress admin menu, click on “Import/Export”, and then click on the “Import Forms” tab. Next, click on the “Choose Files” button and select the form file you want to import (this should be a JSON file).

Where are gravity PDF templates stored? ›

When Gravity PDF is installed, it automatically creates a folder called PDF_EXTENDED_TEMPLATES in your WordPress upload directory. This folder is used to store temporary files, fonts and custom PDF templates.

Is Gravity PDF free? ›

The software is free. How do you make money? We sell All Access Passes for the plugin's premium add-ons and templates. We also offer a Bespoke service to build custom templates for Gravity PDF.

How do I create a fillable space in PDF? ›

How to create fillable PDF files:
  1. Open Acrobat: Click on the “Tools” tab and select “Prepare Form.”
  2. Select a file or scan a document: Acrobat will automatically analyze your document and add form fields.
  3. Add new form fields: Use the top toolbar and adjust the layout using tools in the right pane.
  4. Save your fillable PDF:

How to attach a PDF in Gravity Form? ›

After giving the feed a label, we'll need to select a PDF template. The template that we select will determine the look and feel of the document when exported. Next, we can choose an existing Gravity Forms notification to attach PDF reports to.

References

Top Articles
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 6397

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Gov. Deandrea McKenzie

Birthday: 2001-01-17

Address: Suite 769 2454 Marsha Coves, Debbieton, MS 95002

Phone: +813077629322

Job: Real-Estate Executive

Hobby: Archery, Metal detecting, Kitesurfing, Genealogy, Kitesurfing, Calligraphy, Roller skating

Introduction: My name is Gov. Deandrea McKenzie, I am a spotless, clean, glamorous, sparkling, adventurous, nice, brainy person who loves writing and wants to share my knowledge and understanding with you.