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

How to Generate Word Documents from Gravity Forms Entries

GravityExtra
How to Generate Word Documents from Gravity Forms Entries

Collecting information in a form is only half the job. Very often the real goal is a document: a quote, a contract, a registration certificate, a work order, a letter or an invoice that someone can print, sign or file. Copying each submission into Word by hand is slow and error-prone. With the Gravity Forms MS Word Premium Add-On you design the document once and let every submission fill it for you, producing a finished Microsoft Word file automatically, with an optional PDF and HTML copy.

This guide explains how document generation with Gravity Forms works, how to build a Word template with placeholders, how to map those placeholders to your form fields, how to show and hide parts of the document with conditional logic, and how to deliver the finished files by e-mail or download. If you would rather read the reference, the full instructions live in the GF MS Word documentation.

Why generate Word documents from a form

A Word document is still the format most offices rely on. It is easy to edit, easy to brand, and it prints exactly as designed. When the document is produced from a form, three good things happen at once. The data is captured in a structured way, so it can also be searched, exported and reported on. The document is created the instant the form is submitted, so nobody waits. And because the layout lives in a single template, every document looks the same no matter who filled the form.

Typical uses include quotes and invoices built from a request form, enrolment letters and certificates for course sign-ups, service agreements assembled from a client intake form, inspection and work-order sheets for field teams, and personalised letters for membership or support. In each case the template is fixed and only the values change, which is exactly what a form is good at supplying.

What you need

You need WordPress with Gravity Forms 2.5 or newer, and the Gravity Forms MS Word Add-On installed and activated with a valid licence key. The add-on bundles the libraries that read and write Word and PDF files, so there is nothing else to install on your server. Once the licence is active under Forms, Settings, GF MS Word, you are ready to build your first template.

Step 1: design the Word template

Start in Microsoft Word, Google Docs or LibreOffice and lay out the document exactly as you want it to look: your heading, your logo, your fonts, your table of line items. Wherever a value from the form should appear, type a placeholder instead of real text. A placeholder is a name wrapped in a dollar sign and curly braces, like this: ${first_name} or ${invoice_total}. The name is yours to choose; you will connect it to a form field in the next step. Save the file in the Word .docx format.

Keep the names short and meaningful, and make sure a placeholder reads as one continuous piece of text. If you format half of a placeholder differently from the other half, some editors split it internally and it will not be recognised; the simplest fix is to type the placeholder in one go and format the whole thing the same way.

Step 2: add a feed and map the fields

Open the form, go to Settings, choose GF MS Word, and add a feed. Give the feed a name, upload your template, and then map each placeholder to a form field in the Template Fields section. If your template has ${first_name}, ${last_name} and ${invoice_total}, you add one row per placeholder and pick the matching field. That is the whole connection: the name on the left is what you typed in the document, the field on the right is where the value comes from.

You can also choose the name of the generated file. The Output Document Filename setting accepts merge tags, so something like invoice-{entry_id} gives every document a unique, predictable name.

Step 3: choose the files to generate

A single feed can produce up to three files from the same template. The Word .docx is the main output. Turning on Convert DOCX to PDF renders the document to a PDF as well, which is handy when you want something that looks identical everywhere and cannot be edited. Turning on Generate HTML File adds a web-friendly copy. Pick whichever formats your workflow needs; you can change your mind at any time in the feed settings.

Placing list items one by one

Some fields hold more than one value, such as a set of tags or the options someone ticked. When a mapped field holds a comma-separated value, you can place each item individually. If ${colours} would be “Red, Green, Blue”, then ${colours:0}, ${colours:1} and ${colours:2} give you each colour on its own, which is perfect for filling a table, while the plain ${colours} still prints the whole list.

Showing and hiding parts of the document

One template often has to serve several cases. A quote might include an express-delivery clause only for express orders; a letter might add a line only for members on a premium plan. Instead of making separate templates, you can wrap the optional part between conditional-logic markers. The start marker names the field to test, the operator and the value, and the end marker closes the section.

For example, writing ${conditionallogicstart_3_is_Gold}Priority onboarding included.${conditionallogicend_3_is_Gold} keeps that sentence only when field three is Gold. The operators are is, greater and less, so you can match text exactly or compare numbers. The markers can sit inside a single sentence or stretch across several paragraphs, so you have fine control over what each reader sees. When a condition is false the whole section is removed; when it is true only the markers are removed and the content stays.

Delivering the finished documents

Once a document exists, you will want to send or store it. The add-on gives you three easy routes. First, the feed adds document merge tags such as {gfdocs-docx-url-ID} and {gfdocs-pdf-file-ID} that you can use in confirmations and notifications, where ID is the feed id. Second, when you edit a notification you will see a Gravity Forms Documents section with a checkbox for each document; tick the DOCX, the PDF or both and they are attached to that e-mail automatically. Third, every generated document is linked from the entry detail screen, so your team can open it with one click.

A worked example: a welcome letter

Here is a small, complete setup. The form asks for a name, an e-mail address, a few tags and a plan, Gold or Silver. The template is a one-page welcome letter that greets the member by ${name}, repeats their e-mail, prints the first two tags with ${tags:0} and ${tags:1}, and contains two optional sentences: “Priority onboarding included.” wrapped in an is Gold condition and “Standard onboarding.” wrapped in an is Silver condition, plus a longer Gold-only block that names a dedicated account manager. The feed sets the output filename to welcome-{entry_id} and turns on DOCX, PDF and HTML.

When a Gold member submits the form, the add-on fills the template, keeps the Gold sentence and the Gold block, removes the Silver sentence and all of the markers, and saves the DOCX, its PDF copy and an HTML copy. The notification has the DOCX and PDF boxes ticked, so the member receives both files by e-mail, the confirmation message links to the document through the merge tag, and the entry screen in WordPress shows links to every file.

Moving from an earlier version

If you already run an older version of the add-on, the latest release installs straight over it as an update, using the same plugin folder. Your document feeds, their output choices and field mappings, and your activated licence key are kept, and documents can be generated again for entries made before the update, so your forms keep producing documents without any extra work. The update also switches to automatic updates, so you stay current from then on.

Tips for reliable documents

A few habits make document generation smooth. Keep each placeholder name unique and type it in one piece so it is not split by formatting. Test a template with a real submission before you rely on it, and check that numbers, dates and currency appear the way you expect. Use conditional logic to keep one template flexible rather than maintaining many near-identical files. And when you need a fixed, uneditable copy for signing or archiving, turn on the PDF output.

Get started

Turning submissions into polished Word documents removes a tedious, manual step and makes your paperwork consistent and instant. Design the template, map the fields, choose your formats, and let every entry produce its own document. To see the full feature list, pricing and examples, visit the Gravity Forms MS Word Premium Add-On page and start generating documents from your forms today.

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