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

Gravity Forms EmailOctopus 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. Step 1: install and activate
  4. Step 2: save your API key
  5. Step 3: add a feed to a form
  6. List
  7. Subscription status
  8. Map fields
  9. Custom fields
  10. Tags
  11. Conditional logic
  12. What happens to an existing contact
  13. What is written to the entry
  14. Troubleshooting
  15. For developers
  16. Privacy
  17. Frequently asked questions
  18. Does the add-on need an EmailOctopus plan?
  19. Can I send to several lists from one form?
  20. Does it import the people who already filled in the form?
  21. Which Gravity Forms versions does it support?

Video walkthrough

Gravity Forms EmailOctopus Add-On Setup Guide: API Key, Connection and Feed (WordPress Side)
Video setup guide: Gravity Forms EmailOctopus Watch on YouTube

The Gravity Forms EmailOctopus Premium Add-on subscribes the person who submits a Gravity Forms form to a list in your EmailOctopus account. You keep your own form, your own design and your own fields. The add-on sends the contact to EmailOctopus from your server with your own API key, adds or removes the tags you choose, fills the custom fields of the list, and writes the result on the entry. This guide covers the setup, every feed setting, what is written to the entry and what happens when something goes wrong.

What you need

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer. The add-on is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.
  • An EmailOctopus account with at least one list, and an API key.
  • A GravityExtra license key for this add-on.

Nothing goes through GravityExtra. Contacts are sent from your server straight to EmailOctopus with a key that you create in your own account. The add-on uses the EmailOctopus API version 2 (specification 2.1.0): the call that creates or updates a contact in a list (PUT on lists/list id/contacts), the list of your lists, and the field definitions of a list. No app review or partner approval is needed; you create the key yourself.

Step 1: install and activate

  1. Upload and activate the add-on in Plugins.
  2. Open Forms → Settings → EmailOctopus.
  3. Enter your license key and press Activate License. Without an active license nobody is sent to EmailOctopus; the entry is still saved and a note tells you why.

Step 2: save your API key

In EmailOctopus open the integrations and API page of your account and create an API key. Paste it into API key in the add-on settings and save. The key is encrypted with AES-256-GCM before it is saved, with a key made from your site’s own security salts, and it is never shown again. To keep the saved key, leave the field blank when you save; to replace it, type the new one. If your server has no OpenSSL with AES-256-GCM, nothing is saved, because a key is never stored in clear text.

After saving, the Connection line shows whether EmailOctopus accepted the key and how many lists it found. If it says Not connected, the message tells you why, most often that the key is wrong. Keys made before the version 2 API need to be created again in EmailOctopus.

The EmailOctopus settings screen in Gravity Forms: the license box and the EmailOctopus account section with an encrypted API key field and the connection status showing two lists found
The add-on settings: your own API key, stored encrypted, and the connection status.

Step 3: add a feed to a form

  1. Open the form and go to Settings → EmailOctopus.
  2. Press Add New.
  3. Give the feed a name, for example Newsletter subscribers.
  4. Choose the list, set the status, map the fields, add the tags, set the conditions and save.

A form can have several feeds. Typical setups are one feed per list, one feed for the newsletter and one for a customer list, or one feed that adds a tag to people who tick a box. Switch a feed off in the list when you do not need it.

List

The feed shows your lists by name. The lists are read from EmailOctopus and kept for five minutes. If the lists cannot be read, for example because the key is not saved yet, the box turns into a text field where you can paste the list id. The list id can contain a merge tag from a hidden field, so one form can send to different lists. The id is checked before it is used, and an id that does not look right is refused with a note instead of being sent.

Subscription status

  • List default sends no status. A new contact gets what the list does, and a person who unsubscribed earlier stays unsubscribed. This is the safe choice for a contact form that also offers a newsletter.
  • Subscribed sets the contact to subscribed. Use it when the form is an explicit sign-up. It also subscribes again a person who had unsubscribed, so use it only when the visitor has just asked for the newsletter.
  • Pending sets the contact to pending, so EmailOctopus sends its double opt-in confirmation email when the list uses one.

The add-on never sends the unsubscribed status, and it does not unsubscribe anyone.

Map fields

Email is required. First name and Last name fill the standard FirstName and LastName fields of the list. A Name field with first and last parts fits them directly.

Custom fields

Every other field of your list can be filled in the Custom fields table. In the left column write the tag of the field as EmailOctopus shows it in the list fields, for example Phone, Company or Birthday. In the right column choose a form field, or type text with merge tags.

The add-on reads the field types of the list and converts the value to fit: a number field gets a number, a date field gets a date in the year-month-day form, a multiple choice field gets a list of choices from a checkbox or a comma separated text. A value that does not fit its type, such as words in a number field, is left out instead of being sent wrong, and the rest of the contact is still sent. If the field types cannot be read, every value is sent as text.

Tags

Add tags takes tag names separated by commas or new lines, for example website, spring-offer. Merge tags are allowed, so a drop-down or a set of checkboxes can choose the tags. A tag that does not exist yet in the list is created by EmailOctopus. Remove tags takes the tags that should be taken off the contact, for example lead when someone becomes a customer. Other tags of the contact are not touched. A tag that is in both boxes is removed. Up to 50 tags are sent per submission and each tag name is cut at 100 characters.

The EmailOctopus feed editor: the list, the subscription status, the mapped email and name fields, custom fields, tags to add and remove, and conditional logic
A feed: which list and status, which form fields fill the contact, which tags, and the condition.

Conditional logic

Turn on Enable conditional logic to send only some entries, for example only people who ticked the newsletter box. Each feed has its own condition, so one form can send some people to one list and others to another.

What happens to an existing contact

EmailOctopus creates the contact when the email is new and updates it when it exists. The fields and tags that you send are set; fields and tags that you do not send stay as they are. This is why a repeat sign-up never creates a duplicate.

What is written to the entry

Every submission leaves a note on the entry, with the email masked: a***@yourdomain, the list and the number of tags added. A failed call leaves a note with the reason, for example the status and the first message from EmailOctopus. The visitor never sees an error, and the form is always saved.

A Gravity Forms entry screen with a note that says the contact was sent to an EmailOctopus list, with a masked email and the number of tags added
Every submission is written to the entry as a note, with the email masked.

A feed that succeeded is marked on the entry, so running the feed again for the same entry, for example from a payment add-on that delays feeds, never sends the same contact twice. A failed feed is not marked and is not retried automatically. EmailOctopus allows a limited number of calls per second; a normal form never reaches the limit, and if it does, the note says rate limit.

Troubleshooting

  • No note at all: the feed was not matched. Check the conditional logic, and that the license is active. Without a license, a note says so.
  • HTTP 401: EmailOctopus did not accept the key. Create a new key and save it again.
  • HTTP 404: the list does not exist in the account of that key.
  • HTTP 422: EmailOctopus refused the data. The note shows which field, for example an email address it does not accept.
  • A custom field stays empty: check that the tag in the left column is exactly the tag of the field in the list, and that the value fits the type of the field.

For developers

  • The filter gfemailoctopus_contact changes the contact before it is sent: the email, the fields, the tags to add, the tags to remove and the status. Do not log it.
  • The filter gfemailoctopus_request_args changes the request arguments, for example a longer timeout. It carries the API key in a header, so never log it.

Privacy

Submitting the form gives a name, an email address and the fields you map to EmailOctopus. Tell people on the form where their details go, and add a consent box where your country requires one. The add-on stores nothing outside your site except what EmailOctopus receives. Uninstalling the add-on removes its settings, including the encrypted key.

Frequently asked questions

Does the add-on need an EmailOctopus plan?

It works with any plan that gives you API access. The limits of your plan, such as the number of contacts, apply as usual.

Can I send to several lists from one form?

Yes. Add one feed per list and give each its own condition if only some people should go to each.

Does it import the people who already filled in the form?

No. A feed runs when a new entry is saved. Old entries are not sent.

Which Gravity Forms versions does it support?

Gravity Forms 2.9 and newer. It is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.

See the EmailOctopus add-on

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