🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Google Docs Premium Add-on Setup Guide

Updated 5 min read Gravity Forms PDF & Documents
On this page
  1. Step 1: Install and Activate Your License
  2. Step 2: Connect Your Google Account
  3. Step 3: Prepare the Template
  4. Step 4: Create a Feed
  5. Step 5: Choose the Output
  6. Step 6: Use the Document
  7. Troubleshooting & FAQ
  8. The template is refused with “HTTP 404”.
  9. “This file is not a Google Docs document”.
  10. A placeholder stays in the document.
  11. The connection stops after a week.
  12. What happens if Google is not reachable?
  13. What happens when I uninstall the add-on?

The Gravity Forms Google Docs Premium Add-on makes a Google Doc for each entry from a template you design in Google Docs. Placeholders and Gravity Forms merge tags in the template are filled in with the answers, the document is saved in the Google Drive folder you choose, and a PDF copy can be attached to notifications or downloaded from a private link.

This guide covers installation, connecting your Google account, preparing a template, setting up a feed, the PDF options, and troubleshooting.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.9 or higher, any licence
  • Google account: Google Workspace or a personal Google account, with access to the Google Cloud console to create an OAuth client
  • GravityExtra license: The add-on installed, activated and licensed with an active GravityExtra license key

Step 1: Install and Activate Your License

  1. In WordPress go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Go to Forms → Settings → Google Docs, enter your key in the Gravity Extra License section and click Activate License.
  3. The page then shows the Download links option and, below the settings, the Google account panel.

Step 2: Connect Your Google Account

The add-on talks to Google through your own Google Cloud app, so no third-party service sits between your site and your documents. You do this once per site:

  1. Open the Google Cloud console, create or choose a project and enable the Google Drive API and the Google Docs API (APIs & Services → Library).
  2. Under OAuth consent screen, choose External (or Internal for Google Workspace), fill in the app name and your e-mail, and set the publishing status to In production. In “Testing”, Google ends the connection after 7 days.
  3. Under Credentials → Create credentials → OAuth client ID, choose Web application and add the Callback URL shown in the add-on as an authorised redirect URI.
  4. Copy the Client ID and Client Secret into the add-on, click Save App Settings, then Connect to Google and allow access.
Google account panel of the add-on with the four setup steps, the Callback URL, Client ID, saved Client Secret and the connected account
The Google account panel after connecting.

When the app is not verified by Google, the consent screen shows “Google hasn’t verified this app”. As the owner of the app you can click Advanced → Go to (your app); verification is only needed when other people outside your organisation connect. The Client Secret and the tokens are stored encrypted and are never shown again. Disconnect revokes the access at Google.

Step 3: Prepare the Template

Create a normal Google Docs document with your layout, logo, fonts and tables. Wherever an answer should appear, write either:

  • a placeholder in double braces, such as {{client_name}} or {{project}}, which you map to a form field in the feed, or
  • a Gravity Forms merge tag, such as {Company:1}, {Email:2}, {entry_id} or {date_mdy}, which is filled in directly.

Placeholders and merge tags work in the body, in tables, headers and footers and in every tab of the document. Formatting is kept: a placeholder written in bold gives a bold answer. The template itself is never changed; each entry gets a copy.

Step 4: Create a Feed

Open the form, go to Settings → Google Docs and click Add New:

  • Google Docs template — paste the link of the document. After saving, the add-on shows the document name and every placeholder and merge tag it found.
  • Document name — for example Quote {Company:1} {entry_id}.
  • Save in folder — optional: the link of a Google Drive folder, shared drives included.
  • Placeholders — choose the form field for each placeholder. Placeholders without a field are left empty.
Google Docs feed settings: template link with the placeholders found in the document, document name with merge tags, Drive folder, placeholder map, PDF, notification attachment, sharing and conditions
A feed with the template, its placeholders, the folder and the output options.

Step 5: Choose the Output

  • Also save a PDF — a PDF copy is stored on your site in a protected folder with an unguessable file name.
  • Attach the PDF to these notifications — for example the customer copy; the attachment is named after the document.
  • Keep the Google Doc — switch off to keep only the PDF: the Google Doc is deleted after the PDF is made.
  • Who can open the Google Doc — only people with access to the folder (default), or anyone with the link (view only).
  • Conditions — create the document only when the entry matches your rules, for example a budget above a certain amount.

A form can have several feeds, for example a quote for the customer and an internal job sheet.

Step 6: Use the Document

The entry page shows a Google Docs box with each document, an Open in Google Docs button, a Download PDF button and a Create the documents again link, useful after you edit an entry or the template. A note on the entry records each document or error.

Gravity Forms entry page with the Google Docs box showing the created quote document with Open in Google Docs, Download PDF and Create the documents again
The entry page with the document and its PDF.

Two merge tags work in confirmations and notifications:

  • {gdocs_url} — the link of the Google Doc.
  • {gdocs_pdf_link} — a private download link for the PDF, for example “Download your quote” in the confirmation. You can switch these links off under Download links; staff can still download from the entry.

Add :feed ID, as in {gdocs_pdf_link:3}, when a form has several feeds.

Troubleshooting & FAQ

The template is refused with “HTTP 404”.

The connected Google account cannot open the document. Share the template with that account, or connect the account that owns it.

“This file is not a Google Docs document”.

Word files in Drive must be converted first: open the file in Google Docs and choose File → Save as Google Docs, then use the new link.

A placeholder stays in the document.

Check the spelling and braces in the template; the feed page lists every placeholder it found. Placeholders without a mapped field are emptied.

The connection stops after a week.

Your OAuth consent screen is still in “Testing”. Set it to “In production” and click Reconnect.

What happens if Google is not reachable?

The entry is saved and the notifications are sent as usual; a note on the entry says what failed. Use Create the documents again later.

What happens when I uninstall the add-on?

Forms → Settings → Uninstall disconnects Google, removes the settings and deletes the stored PDFs. Documents in Google Drive stay.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr