Gravity Forms – DOCx

Gravity Forms – DOCx

 
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.

FEATURES

  •  **Fill Word templates from form entries** — 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 form upload / post-image fields (and the Gravity Forms
    *Signature* add-on) onto image placeholders in the template.
  •  **Smart value handling** — type-aware formatting via Gravity Forms, HTML stripped down to line breaks,
    multi-value fields addressable as `placeholder:index`.
  •  **Custom output filenames with merge tags** — name the generated file dynamically (e.g. by an entry
    field), or leave it empty for an automatic, collision-free SHA1 name.
  •  **Merge tags for links & paths** — `{gfdocs-docx-url-ID}`, `{gfdocs-docx-file-ID}`,
    `{gfdocs-html-url-ID}`, `{gfdocs-html-file-ID}` for use in confirmations, notifications and elsewhere.
  •  **Attach documents to notifications** — per feed, tick a box to attach the generated DOCX / HTML file
    to any Gravity Forms notification e-mail.
  •  **Secure, access-controlled downloads** — generated files are never linked directly. They are streamed
    through an `admin-post.php` handler and released only to logged-in users with the form-settings
    capability **or** via an unguessable per-entry token (for the links in confirmations / notifications).
    The output directory is sealed against direct web access .
  •  **Conditional processing** — use the standard Gravity Forms *Feed Condition* to decide when a document
    is generated.
  •  **Entry-detail links** — every generated document is linked from the entry detail page in the admin.
  •  **Keeps documents in sync** — regenerates on entry edit (incl. GravityView Edit Entry) and cleans up
    the generated files when entries or forms are deleted.
  •  **GFAPI-aware** — entries added or updated through the Gravity Forms API also trigger document
    generation.
  •  **Self-contained** — bundles **phpOffice/phpWord 1.4**; nothing is fetched from a CDN.
  •  **Internationalized** — text domain `gravityforms_docx`, German translation included, `.pot` template shipped.