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

Gravity Forms Listmonk 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 user in Listmonk
  4. The settings page
  5. Create a feed
  6. Choose the lists
  7. Double opt-in
  8. Map the email, name and attributes
  9. Conditional logic and several feeds
  10. What happens on submit
  11. The note on the entry
  12. Privacy and security
  13. Troubleshooting
  14. Questions
  15. Do I need Listmonk hosted somewhere?
  16. Will submitting the same email twice make duplicates?
  17. Is my API token safe?
  18. Can one form add people to different lists?
  19. Which Gravity Forms versions are supported?

Video walkthrough

Gravity Forms Listmonk Add-On Setup Guide: Connection, Lists & Double Opt-In (WordPress Side)
Video setup guide: Gravity Forms Listmonk Watch on YouTube

The Gravity Forms Listmonk Premium Add-on connects your Gravity Forms to your own self-hosted Listmonk, the open-source newsletter and mailing-list manager. When a form is submitted, the add-on creates or updates a subscriber in Listmonk by email, maps the name and any attributes you choose, and adds the subscriber to one or more Listmonk lists. Everything runs through your own base URL and your own API user and token, so nothing is sent to GravityExtra and there is no middle service.

Because the subscriber is matched by email, submitting an address that already exists updates it rather than making a duplicate, and the subscriber’s other lists are never cleared. A Listmonk call that fails never blocks the form: the entry is saved and a note on the entry explains what happened.

What you need

  • WordPress with Gravity Forms 2.9 or newer.
  • PHP 7.4 or newer.
  • An active license key for this add-on.
  • Your own running Listmonk install and an API user with a token.

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 user in Listmonk

Listmonk talks to the outside world through its HTTP API, and the add-on signs in to that API with an API user and a token. In your Listmonk admin, open the users or API section, create an API user, and copy the token it generates. That token is the password the add-on uses; treat it the way you would any password. You will also need your Listmonk base URL, which is simply the address where your Listmonk admin lives, for example https://listmonk.your-domain. The add-on adds the /api part itself, so you never have to.

The settings page

Install and activate the add-on like any plugin, after Gravity Forms. Then open Forms → Settings → Listmonk. This one page holds the license key and the three values that make the connection: the base URL, the API user and the API token.

The Listmonk settings page in Gravity Forms: license key, the Listmonk base URL, the API user and the API token, and a connection status line that reads how many lists were found
The settings page: your base URL, API user and token, with a connection line that confirms how many lists were read.

Paste your base URL, API user and token, and save. The token is stored encrypted at rest, so the plain value is never left sitting in the database. After the field is saved it is shown blank, with a note that it is kept encrypted; leave it blank to keep the stored token, or type a new one to replace it. The base URL is tidied for you, so a trailing slash or a pasted /api suffix does no harm.

Under the three fields is a connection line. When the base URL, user and token are saved, the add-on reads your lists once and tells you how many it found. A green “Connected to Listmonk” with a list count means the credentials work and you are ready to build a feed. A clear message tells you if the base URL is wrong or the user and token are not accepted.

Create a feed

A feed ties one form to Listmonk. Open a form, go to its Listmonk settings, and add a feed. You can create several feeds on one form, each with its own lists and its own condition, so a single form can route different people to different lists.

The Listmonk feed list for a Gravity Forms form showing two feeds, Newsletter subscribers and Customers, each with the lists it adds the subscriber to
The feed list: several feeds per form, each showing the lists it adds the subscriber to.

Inside a feed you give it a name, choose the lists, decide on the double opt-in, map the fields and set the condition. The feed editor lays these out in sections so each choice is easy to find.

The Listmonk feed editor in Gravity Forms: a feed name, the lists to add to as checkboxes, a double opt-in toggle, the email and name field map, an attributes map and conditional logic
The feed editor: lists, the double opt-in toggle, the field map, the attribute map and conditional logic in one place.

Choose the lists

The add-on reads your Listmonk lists and shows them as checkboxes. Tick the lists this feed should add the subscriber to. Leave every list unticked to only create or update the subscriber without adding a list. If the lists cannot be read for any reason, the feed offers a text box instead, where you can paste the Listmonk list ids separated by commas, and a merge tag from a hidden field is allowed there too.

Double opt-in

Listmonk lists can use a single or double opt-in, where the subscriber must confirm by email before they count as confirmed. The feed has a double opt-in toggle that decides how the new subscription is recorded. Leave it off and the subscription is added as unconfirmed, so each list’s own opt-in setting takes over and a double opt-in list sends its confirmation email. Turn it on and the subscription is marked confirmed straight away, skipping that email, which suits a form where the person has already clearly asked to join.

Map the email, name and attributes

In the Subscriber section, map the email (required) and the name to form fields. The email is how Listmonk matches an existing subscriber, so it must be a real email field. If you leave the name empty, the add-on uses the part of the email before the @ so the subscriber always has a name.

Below the field map is the attributes map, which stores extra data in the subscriber’s attribs JSON in Listmonk. Give each row an attribute key, for example city or plan, and the form field or merge-tag text to fill it. A value that looks like a number is sent as a number, and everything else is sent as text, so a count stays a count and a postcode with a leading zero stays text. The email key is never used as an attribute.

Conditional logic and several feeds

The When to subscribe section adds conditional logic to the feed, so it only runs when the rules you set are met. With several feeds you can send one form’s submissions to different lists: a feed that runs when a choice equals “newsletter” adds the newsletter list, another that runs for “product updates” adds a different list, and a submission that matches neither adds nobody. Each feed is independent, so one form can feed many lists cleanly.

What happens on submit

When a visitor sends the form and a feed’s condition is met, the add-on creates the subscriber in Listmonk with the email, name and attributes. If that email already exists, the add-on finds the existing subscriber and updates it instead, so you never get a duplicate and the subscriber’s other lists are left exactly as they were. It then adds the subscriber to the feed’s lists, marking the subscription confirmed or unconfirmed as the toggle decides.

All of this happens quietly in the background, after the entry is saved, so the visitor never waits on Listmonk and a slow or failed call never stops them submitting.

The note on the entry

Every entry keeps a short Listmonk note, so you can see what happened. A success note reads that the subscriber was saved and how many lists were added, with the email masked. When a call fails, the note records the reason — a wrong base URL, a token that was not accepted, a rate limit — again with the email masked, and the entry is still saved so no submission is ever lost.

A Gravity Forms entry screen showing the submitted field values and the Listmonk note recording that the subscriber was saved and one list was added, with the email masked
The entry screen: the submitted values and the Listmonk note recording the result, with the email masked.

Privacy and security

The only server the add-on talks to is your own Listmonk, at the base URL you set, plus gravityextra.com for the license check. It calls no other service and adds no tracking. Your API token is encrypted at rest on your site, so it is not stored as plain text, it is never shown again after it is saved, and it is never written to an entry or a log. Because the base URL is yours, your subscriber data goes only to your own Listmonk and nowhere else.

Troubleshooting

  • The connection line is not green: check the base URL is the address of your Listmonk admin, and that the API user and token are correct. The message names the cause.
  • No lists appear in the feed: the lists could not be read, usually because the credentials are not yet saved. Save the settings first, or paste the list ids into the text box.
  • Subscribers are unconfirmed when you wanted them confirmed: turn on the double opt-in toggle in the feed so new subscriptions are marked confirmed.
  • An entry has a failure note: read the note for the reason. A 401 points at the user and token, a 404 at the base URL.

Questions

Do I need Listmonk hosted somewhere?

Yes. Listmonk is self-hosted, so you run it yourself and give the add-on its base URL and an API user. Nothing goes through GravityExtra.

Will submitting the same email twice make duplicates?

No. The subscriber is matched by email. An address that already exists is updated, and its other lists are kept.

Is my API token safe?

Yes. It is stored encrypted, shown blank after saving, and used only to sign in to your own Listmonk. It is never written to an entry or a log.

Can one form add people to different lists?

Yes. Add several feeds, each with its own lists and its own conditional logic, and each submission is routed by the conditions you set.

Which Gravity Forms versions are supported?

Gravity Forms 2.9 and newer, on PHP 7.4 and newer.

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