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

Gravity Forms Documenso Premium Add-on Setup Guide

Updated 7 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Create an API key in Documenso
  4. Connect Documenso
  5. Create a template in Documenso
  6. Add a feed
  7. Document
  8. Signers
  9. Prefill fields
  10. Email and condition
  11. A form on your site
  12. What happens on submit
  13. Retries never create the document twice
  14. Notifications and merge tags
  15. Self-hosted, ports and private networks
  16. Security and the API key
  17. When something goes wrong
  18. Frequently asked questions
  19. Do I need a Documenso Cloud account?
  20. How do signers get matched to the template?
  21. Can I create the document without sending it?
  22. What if the same form is submitted twice, or a feed is resent?
  23. Is my API key safe?
  24. Which Gravity Forms version do I need?

Video walkthrough

Gravity Forms Documenso Add-On Setup Guide: Template Documents & Signers (WordPress Side)
Video setup guide: Gravity Forms Documenso Watch on YouTube

The Gravity Forms Documenso Premium Add-on connects your WordPress forms to Documenso, the open-source, self-hostable alternative to the big e-signature services. When someone sends a form, the add-on generates a signing document from one of your Documenso templates and sends the signature request to the people on the form. It maps every template recipient to a signer email, name and role from the entry, prefills the template fields you choose, and writes the new document id, its status and the signing links back onto the Gravity Forms entry.

It works with Documenso Cloud (app.documenso.com) or your own self-hosted Documenso, even one that lives in a sub-folder or on its own port. You enter the address and your API key; the key is stored encrypted, and the add-on only ever contacts the Documenso address you set. This guide walks through the setup, every feed option, drafts and sending, retries, notifications and what happens when something goes wrong.

What you need

  • WordPress with Gravity Forms 2.9 or newer.
  • PHP 7.4 or newer.
  • An active license key for this add-on.
  • A Documenso account, on Documenso Cloud or self-hosted, with at least one template and an API key.

If Gravity Forms is missing or older than 2.9, the add-on shows a notice in the WordPress admin and does nothing else, so a form is never left half connected.

Create an API key in Documenso

The add-on talks to the Documenso API with a key you create in your own account:

  1. Sign in to Documenso — on Documenso Cloud at app.documenso.com, or on your self-hosted address.
  2. Open Settings → API Tokens and create a new token. Give it a name such as “Website forms”.
  3. Copy the key now and treat it like a password. The add-on encrypts it before it is stored, and it is never shown again.

Connect Documenso

In the WordPress admin, open Forms → Settings → Documenso and activate your license key. Then fill in the connection:

  • Documenso address — leave this empty to use Documenso Cloud (https://app.documenso.com), or enter your self-hosted address, for example https://sign.yourcompany.com. Do not add /api/v1; the add-on adds it.
  • API key — paste the key you created. It is stored encrypted at rest and never written to an entry or a log.
  • Authentication header — leave this on Authorization: Bearer, which works with Documenso Cloud and recent self-hosted builds. Switch to X-Auth-Token only if your self-hosted Documenso needs it.

Click Test connection. The add-on calls the Documenso API with what you typed and lists the first templates it finds, so you know the address and key are right before you build a feed.

The Documenso settings page in Gravity Forms: license key, Documenso address, API key, authentication header and a Test connection button listing the templates
The settings page: the Documenso address, API key, authentication header and the Test connection result.

Create a template in Documenso

A template is the document you want people to sign — a service agreement, an NDA, a consent form — with the signature, name, date and text fields placed where they belong, and one or more recipient placeholders. Create it once in Documenso under Templates, then open it and copy its id from the address bar. You will put that id on the feed.

Add a feed

A feed tells the add-on what to do when a form is submitted. Open your form, go to Settings → Documenso and add a feed.

Document

  • Template id — the id of the Documenso template to generate the document from.
  • Document title — the title of the new document. Merge tags work, for example Agreement for {Company:4}.
  • Send the signature request — tick this to send the document for signing straight away. Leave it off to create the document as a draft in Documenso that you send by hand later.

Signers

Map each template recipient to a signer from the form. For every signer you set an email (a merge tag such as {Email:2}), an optional name, and a role — signer, approver, CC or viewer. The first signer is required; add a second or third only if your template has more recipients. A row without an email is left out, and the signers are matched to the template placeholders in order. If your template order differs, you can set the template recipient id on a row to match it exactly.

Prefill fields

You can fill template fields with values from the entry. Each prefill row has a template field — its label or its numeric field id — and a value with merge tags, for example {Company:4}. Empty rows are skipped, so you only fill what you need.

Email and condition

You can set the email subject and message Documenso sends to the signers, both with merge tags. Finally, a condition can limit the feed so a document is only created when a rule is met, for example only when a plan is “Enterprise”.

A form on your site

Any Gravity Form works. A signing request usually asks for the signer’s name and email and a little context — the company, the plan, anything you want to prefill into the document. The merge tags on the feed pull those values when the form is submitted.

A front-end Gravity Form that requests a service agreement signature, with name, email, company and plan fields
A signing-request form on the site. Its fields become the signer and the prefilled document values.

What happens on submit

When the form is submitted and the feed condition is met, the add-on builds the signer list and the prefill fields, then asks Documenso to generate a document from the template. If you turned on sending, Documenso emails the signature request; otherwise the document waits as a draft. The add-on saves the Documenso document id, its status and the signing links on the entry, and adds a note with a link straight to the document.

A Gravity Forms entry screen with the field values and a note confirming the Documenso document was created and sent, with the signing link
The entry keeps a note with the document and a link straight to it in Documenso.

Retries never create the document twice

Every document is tagged with an external id built from your site, the entry and the feed. If a document is already linked to an entry, the add-on never creates a second one. If a reply from Documenso is ever lost — a timeout after the document was really created — a retry or Resend looks the document up by that external id and reuses it instead of making a duplicate. If the first try failed before anything was created, the retry simply creates it once.

Notifications and merge tags

The add-on adds two notification events, Documenso document created and Documenso document failed, so you can email your team or the customer when a document goes out or when something needs attention. Three merge tags are available in notifications and confirmations: {documenso_document_id}, {documenso_document_url} and {documenso_status}.

Self-hosted, ports and private networks

A self-hosted Documenso on a public address, a sub-folder or a custom port all work; the add-on keeps the path and port and never follows a redirect to another host. For safety, addresses that point to a private or local network are refused by default, so a form can never be used to reach an internal service. If your Documenso really does live inside your own network, a site developer can allow that exact host with the gfdms_allow_private_hosts filter.

Security and the API key

Your API key is encrypted with AES-256-GCM before it is stored, using keys derived from your site’s own secrets. It is shown as a password field, never echoed back to the settings screen, and never written to an entry, a note or a log. Every request uses HTTPS with certificate verification on. If you would rather not store the key in the database at all, define GFDMS_API_KEY in wp-config.php and the add-on uses that instead.

When something goes wrong

A failed call never blocks the submission — the entry is always saved. Instead, the add-on writes a clear note on the entry explaining what happened: a missing template id, a signer without a valid email, an address that could not be reached, or an error returned by Documenso. The note never contains your API key, and the “document failed” notification lets you follow up.

Frequently asked questions

Do I need a Documenso Cloud account?

No. The add-on works with Documenso Cloud or a Documenso you host yourself. Leave the address empty for the cloud, or enter your own address for a self-hosted instance. Either way you use your own API key.

How do signers get matched to the template?

Signers are matched to the template’s recipient placeholders in the order you list them. If your template order is different, set the template recipient id on a signer row to match it exactly.

Can I create the document without sending it?

Yes. Turn off “Send the signature request” and the document is created as a draft in Documenso, which you can review and send by hand. The entry still records the document id and a link.

What if the same form is submitted twice, or a feed is resent?

Each document carries an external id tied to the entry and feed, so a retry or Resend never creates a second document. If a document already exists for the entry, the add-on just notes it and stops.

Is my API key safe?

Yes. It is encrypted at rest, shown only as a password field, never logged or stored with an entry, and sent only to your Documenso address over HTTPS. You can also set it in wp-config.php so it never touches the database.

Which Gravity Forms version do I need?

Gravity Forms 2.9 or newer, on PHP 7.4 or newer. On anything older the add-on shows a notice and stays inactive.

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