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

Gravity Forms Event Bookings Premium Add-on Setup Guide

Updated 13 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. What It Does Not Do
  4. Requirements
  5. Quick Start
  6. The Event Booking Feed
  7. Event, Ticket and Spaces
  8. The event
  9. The ticket
  10. The spaces
  11. Event and Ticket Choices for Fields
  12. The Booking Form on Event Pages
  13. Capacity Checks
  14. Who Books
  15. Status and E-mails
  16. Paid Tickets
  17. The Entry and Events Manager Stay in Step
  18. Merge Tags
  19. Hooks for Developers
  20. If Something Is Wrong
  21. Frequently Asked Questions
  22. Does it send its own e-mails?
  23. Do I need Events Manager Pro?
  24. Can the same form book several events?
  25. Do I need to write code?
  26. Does it send data to another service?
  27. Event bookings with a Gravity Forms form

Video walkthrough

Gravity Forms Event Bookings: Book Events Manager Events with a Gravity Form
Book free Events Manager events with a Gravity form Watch on YouTube

Event Bookings joins Gravity Forms and the free Events Manager plugin. A visitor chooses an event, a ticket type and the number of spaces in a Gravity Forms form, the add-on checks the spaces that are left, and when the form is sent it creates a real booking in Events Manager. Events Manager saves the booking itself, so its own approval setting decides whether the booking is Approved or Pending, and its own e-mails go to the attendee and the organiser. You get Gravity Forms styling, conditional logic, notifications and payment add-ons on top of Events Manager bookings.

A Book an event form with name, email, phone, an Event drop-down, a Ticket drop-down with prices, a Spaces number and a consent box, showing the message that only 10 spaces are left for General admission at Spring Gala
Asking for more spaces than are left is refused at the spaces field, with a message that says how many are left.

What You Get

  • A booking feed that creates the Events Manager booking: event, ticket type and spaces from the form, person from the form.
  • Capacity checks before the entry is saved. An overbooking is refused at the spaces field with a clear message.
  • Event and ticket choices for select and radio fields: upcoming events and their tickets, with date, price, event name and sold out marks.
  • The form on single event pages: automatically, with a shortcode or with a block. The event ID is prefilled.
  • Who books: the logged in user, the user with the same email address, a guest booking, or a new account, following the Events Manager settings.
  • Paid tickets with a Gravity Forms product field: the price comes from Events Manager, a payment add-on charges it, and the booking is marked as paid when the payment completes.
  • Entry notes with the booking number, entry meta, and a box on the entry screen with a link to the booking.
  • Cancel, reject, approve and delete in Events Manager update the entry status and notes.
  • Merge tags for the event, ticket, spaces and booking, conditional logic for the feed, AJAX and multi-page forms.
  • A clear notice when Events Manager is missing, too old or switched off.

What It Does Not Do

Events with time slots and recurring event templates are not supported in 1.0.0: book one of the dates of a recurring event instead. The add-on does not change your tickets, capacity or Events Manager settings, it does not take payments by itself (Gravity Forms payment add-ons do), and it does not need Events Manager Pro: only the free plugin is used.

Requirements

  • Gravity Forms 2.9 or newer and PHP 7.4 or newer.
  • The free Events Manager plugin from wordpress.org, version 6.1 or newer, active on the same site. The add-on is tested with Events Manager 7.4.8 and checks what it needs on every request, so a version that moves something shows a clear message instead of an error.
  • A GravityExtra license key.

Quick Start

  1. Install and activate the add-on, then activate your license key in Forms → Settings → Event Bookings. The same screen shows the Events Manager version found and how many upcoming events take bookings.
  2. Build a form with an Email field (and name and phone if you want them), a select field for the event, a select or radio field for the ticket, and a number field for the spaces.
  3. In the editor, open the event field and set Event choices to Upcoming events. Open the ticket field and set it to Tickets.
  4. Open the form settings, go to Event Bookings, add a feed and choose the event, ticket and spaces fields and the email field.
  5. Send the form once. Open the entry: the Event booking box shows the booking number, and the booking is in Events → Bookings.
The Event booking feed settings in Gravity Forms: which event is booked, the ticket type, the spaces, the people fields, the consent field and the payment and cancel options
One feed: choose the event, ticket and spaces fields, map the person and decide what happens on payment and cancel.

The Event Booking Feed

A feed is made in the form settings, in the Event Bookings tab, like any other Gravity Forms feed. A form can have several feeds, each with its own condition.

Setting What it does
Which event is booked A field of the form (the event ID), one fixed event, or the event that the chosen ticket belongs to.
Ticket type A field of the form (the ticket ID), or the first ticket that can be booked now.
Spaces A number, quantity or drop down field, or always one space.
Map fields Email (required), full name, first name, last name, phone and a booking comment.
Consent field A Consent or checkbox field that answers the data privacy checkbox of Events Manager.
Visitors who are not users Follow the Events Manager settings (the default) or always book as a guest without an account.
When the payment is completed Mark as paid and keep the status, or mark as paid and approve the booking.
When the booking is cancelled or rejected Add an entry note and update the status, or also move the entry to the trash.
Create the booking only when the payment is completed Shown when a payment add-on is active. The booking is made when the payment is done.
Condition Create the booking only if the entry matches your rule.

Event, Ticket and Spaces

Events Manager books an event through a ticket: every booking has one or more spaces on one ticket. The feed needs the three things and gets them from the form.

The event

  • A field of the form. A select or radio field with the Upcoming events choices, or a hidden field that is filled with the event of the page (see below). The value of the field is the Events Manager event ID.
  • One fixed event. Type the event ID. Use this for a form that sells one event only.
  • The event of the chosen ticket. Every ticket belongs to one event, so a ticket choice alone is enough. This is the simplest setup for a form with one ticket field.

The ticket

Choose a field whose value is the ticket ID, normally a select or radio field with the Tickets choices, or a product field for a paid ticket. If the event has one ticket only, use The first ticket that can be booked and the form needs no ticket field at all. If the ticket does not belong to the event, the form says so and nothing is booked.

The spaces

A number field, the Quantity field of a product field, or a drop down. The value must be a whole number of 1 or more. Choose One space for a form that books a single seat. Events Manager books one ticket booking for each space, exactly as its own form does.

Event and Ticket Choices for Fields

Open a select or radio field (a product field shown as a drop down or radio buttons works too) in the form editor. The Event choices setting fills the choices from Events Manager each time the form is shown, so a new event, a new price or a sold out ticket is on the form at once.

Setting What it does
Upcoming events The value is the event ID. Only events that take bookings and are not past, cancelled or unpublished are listed, in date order.
Hide events that are full Full events are left out. When off, they stay in the list and are marked full.
Show the date in the label Adds the start date and time of the event to the label.
Most events listed Up to 500, 50 by default.
Tickets of Every upcoming event (the label says which event), the event of the page the form is on, or one event ID.
Show the price in the label Uses the Events Manager currency format.
Show the event name in the label Useful when the list has tickets of several events. Left out when the tickets are of one event.
Hide sold out tickets Sold out tickets are marked sold out, or left out when this is on.

On a product field the choice also carries the Events Manager price of the ticket, so the Gravity Forms total is the price of the ticket times the spaces. The choices you typed in the editor stay as a fallback when Events Manager is not available, and the editor always shows and saves your own choices.

The Booking Form on Event Pages

Three ways to put a form on an event page. All three prefill the event ID, and a ticket field set to the event of the page lists the tickets of that event only.

Way How
Automatically In Forms → Settings → Event Bookings choose a form under Form on event pages and its position. The form is added to every single event page that takes bookings, and not to events with bookings switched off.
Shortcode Place the shortcode in the event text or in any page. Give the event ID, or leave it out on an event page.
Block Add the Event booking form block. Choose the form and, outside an event page, the event ID.
<!-- The shortcode in a page or in the event text -->
[gfxem_form id="3" event="12"]
[gfxem_form id="3"]          (on an event page the event of the page is used)

The form needs a field that takes the event ID. Add a hidden field, open its advanced tab, turn on Allow field to be populated dynamically and use the parameter name em_event_id. The add-on fills it. The address parameter em_event_id works too, for a link such as a button on an event list. A shortcode or block placed in the content wins over the automatic insert.

Events Manager keeps its own booking form in its event page layout. If you want visitors to see only the Gravity Forms form, take the booking form out of the Events Manager single event layout, or hide it with a line of CSS. Both forms make the same kind of booking, so keeping both is safe.

Capacity Checks

The check runs when the form is sent, before the entry is saved, so a refused booking leaves no entry behind. It asks Events Manager itself, so ticket limits, event limits and pending bookings are counted the way your Events Manager settings say.

Situation What the visitor sees
More spaces than the ticket or event has left Only 3 spaces are left for General admission at Spring Gala, and you asked for 4. (at the spaces field)
Nothing left There are no spaces left for General admission at Spring Gala.
A ticket of another event Please choose a ticket that belongs to this event.
Zero, negative or text spaces Please enter how many spaces you need (1 or more).
Event unpublished, cancelled, closed, or bookings off The Events Manager message, for example This event is not available or has been cancelled.
Fewer or more spaces than the ticket allows per booking The Events Manager message for the minimum and maximum of the ticket.
The same person books again and Events Manager does not allow it The Events Manager already booked message.
The data privacy box is not ticked The Events Manager consent message, at the consent field.

The last check is made again when the booking is created. If the spaces were taken in between, for example while a visitor was at a payment page, no booking is made, and the entry gets an error note so you can refund or reach out.

Who Books

Every Events Manager booking belongs to a person. The add-on decides like this:

  1. A logged in user books as themselves.
  2. A visitor whose email address belongs to a user books as that user. No second account is made.
  3. Any other visitor follows the Events Manager settings. If anonymous bookings are off, the form asks the visitor to log in. If guest bookings without an account are on, the booking is made without a user and the name, email and phone are kept in the booking. Otherwise an account is created with the Events Manager registration, and Events Manager sends its new user e-mail.

Choose Always book as a guest in the feed to skip accounts for this form. If Events Manager forbids a second booking by the same person, the form refuses it with Events Manager’s own message.

Status and E-mails

The status of a new booking is decided by Events Manager: Pending when it needs approval (Events → Settings → Bookings), otherwise Approved. The attendee and the organiser get Events Manager’s own e-mails, the same ones its own booking form sends, with your wording and your templates. The add-on sends no e-mail of its own. Gravity Forms notifications work as usual and can use the merge tags below.

  1. Add a Product field as radio buttons or a drop down, and set Event choices to Tickets. Each choice carries the Events Manager price.
  2. Add a Quantity field for the product. It is the number of spaces.
  3. In the feed choose the product field as the ticket and the quantity field as the spaces.
  4. Add a payment feed with your Gravity Forms payment add-on. It charges the total.
  5. Choose what happens when the payment is completed: mark the booking as paid and keep the status, or mark it as paid and approve it.

If your payment add-on supports delayed feeds, turn on Create the booking only when the payment is completed: the booking, and its spaces, are made when the money arrives. Otherwise the booking is made at once and marked as paid later, which holds the spaces while the visitor pays.

When the payment completes, the add-on saves the amount, the transaction and the currency on the booking, adds a booking note, approves the booking if you asked for that, and Events Manager’s paid total follows. Completing the same payment twice does not add a second note. A refund adds an entry note: cancel the booking in Events Manager if you want its spaces back.

The Entry and Events Manager Stay in Step

The entry gets a note with the booking number and the status. The entry screen has an Event booking box with the number, the live status, the event, the ticket and a link to the booking in Events Manager. The booking number, event ID and status are saved as entry meta, so you can filter and export on them.

When someone changes the booking in Events Manager, the entry follows:

In Events Manager On the entry
Approve or unapprove The status changes and a note says so.
Cancel or reject The status changes, a note says so, and the entry can go to the trash if the feed says so. The spaces are free again.
Delete the booking The status becomes deleted, with a note.
The Events Manager bookings screen listing the booking that the form created, with the event, the person, the spaces and the status
The booking is in Events Manager like any other, with its own status and e-mails.

Merge Tags

Tag Prints
{em_event_name} The name of the event.
{em_event_start} The start date and time, in the date format of your site and the time zone of the event.
{em_event_end} The end date and time.
{em_event_id}, {em_event_url} The event ID and the address of the event page.
{em_event_location} The name of the location.
{em_ticket_name}, {em_spaces} The ticket and the number of spaces.
{em_booking_id}, {em_booking_status} The booking number and its status in words.

They work in notifications, confirmations and feed fields. Before the booking exists, for example while a payment is open, the event, ticket and spaces tags are read from what was sent and the booking tags are empty.

Hooks for Developers

// Change the comment that is saved with every booking.
add_filter( 'gfxem_booking_request', function ( $request, $feed, $entry, $form ) {
    $request['comment'] = trim( $request['comment'] . ' (form: ' . $form['title'] . ')' );
    return $request;
}, 10, 4 );

If Something Is Wrong

The add-on never lets a problem on the Events Manager side break your form. If Events Manager is not active, the form shows your typed choices, the entry is saved, and a note on the entry says no booking was made. The Forms screens and the settings page show the reason. If the license is not active, the choices stay as you typed them, no booking is made and the entry says so.

Frequently Asked Questions

Does it send its own e-mails?

No. Events Manager sends its booking e-mails when the booking is saved. Gravity Forms notifications are yours as usual.

Do I need Events Manager Pro?

No, the free Events Manager plugin is enough.

Can the same form book several events?

Yes. Use an event drop down and a ticket field of the tickets of every event, or add a feed per event with a condition.

Do I need to write code?

No. Everything is set in the form editor and in the feed. A few optional hooks exist for developers.

Does it send data to another service?

No. Everything happens on your own site.

A booking form that checks the spaces, a booking list that fills itself, and an entry that always knows what became of the booking take three chores away from every event you run.

Event bookings with a Gravity Forms form

Choose the event, ticket and spaces, check the capacity and create the booking in Events Manager.

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