Gravity Forms DOCX
SP Gravity Forms DOCx — turn every form submission into a finished Word document Use Gravity Forms as the front-end to fill your own Microsoft Word (DOCX) templates with the values of each entry, and get a ready-to-send DOCX (and optionally HTML) file the moment the form is submitted. Every form can hold several independent feeds — one template per feed — so a single form can produce a contract, a confirmation letter and an invoice at once. Built on the proven phpOffice/phpW…
All source code listed on this site is collected from the internet. If any listing infringes your rights, please contact us and we will remove it immediately.
Description
SP Gravity Forms DOCx — turn every form submission into a finished Word document
Use Gravity Forms as the front-end to fill your own Microsoft Word (DOCX) templates with the values of each entry, and get a ready-to-send DOCX (and optionally HTML) file the moment the form is submitted. Every form can hold several independent feeds — one template per feed — so a single form can produce a contract, a confirmation letter and an invoice at once.
Built on the proven phpOffice/phpWord engine (bundled — nothing is fetched from a CDN). Generated files are mapped from your form fields, can be output as merge tags, attached to notification e-mails and downloaded through a secure, access-controlled handler with a per-entry token.
Why you’ll love it
- Fill Word templates automatically. Map your form fields onto the placeholders of an uploaded .docx template — the entry values are written straight into the document.
- ️ Several templates per form. Each form can hold multiple feeds, each with its own template, output filename and conditions.
- DOCX and/or HTML output. Generate a Word document, an HTML rendering, or both — per feed.
- ️ Image & signature placeholders. Map upload / post-image fields and the Gravity Forms Signature add-on onto image placeholders in the template.
- ️ Dynamic filenames. Name the generated file with merge tags (e.g. by an entry field), or leave it empty for an automatic, collision-free SHA1 name.
- Merge tags for links & paths. Drop the generated document’s URL or server path into confirmations, notifications and anywhere merge tags are available.
- ✉️ Attach to notifications. Tick a box per feed to attach the generated DOCX / HTML file to any Gravity Forms notification e-mail.
- Secure, access-controlled downloads. Files are never linked directly — they are streamed through an admin-post handler, released only to authorized users or via an unguessable per-entry token, and the output folder is sealed against direct web access.
- Always in sync. Regenerates on entry edit (incl. GravityView Edit Entry) and cleans up the files when entries or forms are deleted.
- Translatable. Text domain gravityforms_docx; German translation included, .pot template shipped.
How it works
- Create a Word template and insert ${placeholder} tags where the form values should go.
- On your form, add a DOCx feed and upload the template.
- Map your form fields onto the template placeholders (text and image fields).
- Choose whether to generate a DOCX, an HTML file, or both.
- Submit the form — the finished document is generated instantly, linked on the entry, available as merge tags and (optionally) attached to your notifications.
Merge tags
- {gfdocs-docx-url-ID} — secure download URL of the DOCX file.
- {gfdocs-docx-file-ID} — absolute server path of the DOCX file.
- {gfdocs-html-url-ID} — secure download URL of the HTML file.
- {gfdocs-html-file-ID} — absolute server path of the HTML file.
The url tags carry the entry’s download token, so they work in confirmations and notification e-mails even for logged-out recipients.
Smart value handling
- Values are formatted the way Gravity Forms displays them (text, number, date, time, post and pricing fields).
- HTML is stripped down to line breaks; <br> becomes a Word line break.
- Multi-value fields are addressable per value as ${key:0}, ${key:1}, …
What’s included
- The plugin (feed add-on: templates, field mapping, DOCX / HTML generation, secure downloads).
- Bundled phpOffice/phpWord 1.4 (no external dependency).
- Example Word templates to get you started.
- English and German translations (text domain gravityforms_docx).
- Full documentation in English and German (README + feature overview).
Requirements & compatibility
- WordPress 5.0+ (tested on current 6.x / 7.0)
- Gravity Forms 2.10+
- PHP 7.4+
Changelog
4.0.3
- Completed the rename to “DOCx” (plugin, files, classes and text domain); added the missing plugin-header fields and hardened the code against the WordPress Plugin Check (escaping, sanitization, WP filesystem helpers).
- German translation renamed to the new text domain and a .pot template added.
4.0.2
- Generated files are now streamed through an access-controlled download handler (capability or per-entry token); the output directory is sealed against direct web access.
4.0.1
- Code-style refactoring and cleanup-routine bugfixes.
4.0.0
- Updated to WordPress 7.0, Gravity Forms 2.10 and phpOffice/phpWord 1.4.
Related products
More digital goods in the same category or with similar tags.
WordPress / Forms
Table Matrix for Gravity Forms - Multiple Choice Field Add-On
WordPress / Forms
Gravity Forms Range Slider
WordPress / Forms
Preview Submission in Gravity Forms
WordPress / Forms
Mollie integration with ARForms
WordPress / Forms
Contact Form 7 Add-ons Bundle
WordPress / Forms
Form Styler Ultimate | Gravity Forms, Ninja Forms, CF7 (Contact Form 7), WooCommerce
WordPress / Forms
WordPress Gravity Forms PDF, Excel, CSV & Google Sheet
WordPress / Forms
Contact Form 7 Autocomplete off
Gravity Forms DOCX
After successful payment, you will receive a download link for the source code