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

Gravity Forms Calendar Events Premium Add-on Setup Guide

Updated 9 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Quick Start: Registration Form
  5. The Registration Area
  6. One Event, Another Form
  7. The Shortcode
  8. Prefilled Event Fields
  9. Sending the Notification to the Event Author
  10. Registrations, Seat Limits and Closing
  11. Entries, Merge Tags and Notes
  12. Quick Start: Submit an Event
  13. When Sugar Calendar Is Not Active
  14. Troubleshooting
  15. Frequently Asked Questions
  16. Do I need a paid version of Sugar Calendar?
  17. Does it change Sugar Calendar?
  18. Does it send data to another service?
  19. What happens when my license expires?

Video walkthrough

Gravity Forms Sugar Calendar: Event Submissions and Registrations with Calendar Events
Visitors suggest Sugar Calendar events and register with Gravity Forms Watch on YouTube

Calendar Events joins Gravity Forms and the free Sugar Calendar plugin in two ways. A feed turns a form into the registration form of your events: it appears on every event page, fills in the event, sends the notification to the event author and counts the registrations. Another feed type turns a form into an event submission form that creates a real Sugar Calendar event from the entry. Sugar Calendar keeps showing the calendar; Gravity Forms takes the registrations.

A single Sugar Calendar event page with the date, time, location and calendar of a harbor market, the event text and a Register for this event form below it, with the notice that 26 of 30 seats are left
The registration form sits under the event text, with the seats that are left.

What You Get

  • A registration form on every single event page, placed after or before the event text, or wherever you put the shortcode.
  • Hidden form fields filled with the event ID, title, start, end, location, calendar and URL, and set again on the server when the form is sent.
  • Notifications sent to the event author, plus an optional contact e-mail kept with the event.
  • The event ID and the seats saved with every entry, so you can filter entries by event.
  • A Registrations column and a row link in the Sugar Calendar events list.
  • An optional seat limit per event, a registration deadline, and automatic closing when the event starts or has ended.
  • A feed that creates events: title, description, start and end, all-day, location, calendar, contact e-mail, deadline, seat limit, featured image and status.
  • Feed conditional logic, entry notes, merge tags and a clear message when Sugar Calendar is not active.

Requirements

Gravity Forms 2.9 or newer, the free Sugar Calendar plugin (it is called Sugar Calendar Lite on wordpress.org), WordPress 6.5 or newer and PHP 7.4 or newer. The add-on was tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4, with Sugar Calendar Lite 3.16.0. No paid Sugar Calendar version is needed. Recurring events are a feature of the paid Sugar Calendar version, so the event feed creates single and all-day events only.

Quick Start: Registration Form

  1. Build a form with the fields you want: name, e-mail, a Number field for the seats if you like, and hidden fields for the event data you want to keep (event ID, title, start, end, location, calendar, URL).
  2. Open the form, go to Settings, then Calendar Events, and add a feed. Leave the type on Event registration form. Map each hidden field in the Prefilled fields section.
  3. Tick the notifications that should go to the event author, and choose whether they replace the notification recipients or join them.
  4. In Forms, Settings, Calendar Events choose that form as the registration form of your events.
  5. Open any event on your site. The form is there. Send it and look at the entry: it shows the event, the seats and a note about where the notification went.
The Event registration feed settings in Gravity Forms: the hidden fields filled from the event, the seats field and the notification sent to the event author
One feed: map the event fields, choose the notification to send to the author and the seats field.

The Registration Area

Sugar Calendar prints the date, time, location and calendar of an event and then the event text. The add-on adds the registration area to that content: a heading, the seats that are left when the event has a limit, and your form. In Forms, Settings, Calendar Events you choose to place it after the text (the default), before the text, or only where you use the shortcode. The heading is yours to change or to leave empty. Forms can send without reloading the page (AJAX), which is the default, or with a normal page reload.

If the event is full, or registration is closed, the area shows your message instead of the form. You can change both messages in the settings.

One Event, Another Form

Every event screen has a Registration form and seats box. Choose Default to use the form from the settings, No form to remove the registration area from that event, or another form that has an event registration feed. This is handy when workshops need more questions than a free evening.

The Shortcode

Use the shortcode to place the form anywhere, for example in a page builder column or the Shortcode block of the block editor. On a single event page it needs no attributes:

[gfsugar_register]

To show the form of another event, or to use another form, add the event ID and the form ID:

[gfsugar_register event="123" form="4"]

Only published events are shown to visitors. Editors who can edit the event also see the form of a draft. When the shortcode is already in the text of an event, the automatic placement skips that event so the form never appears twice.

Prefilled Event Fields

In the feed you map form fields to the event: ID, title, start, end, location, calendar and URL. Hidden fields are the best choice because the guest does not need to see them. The values are filled when the form is shown. When the form is sent the add-on reads the event again from the server and writes the true values into the mapped fields, so a visitor who edits a hidden field in the browser changes nothing. The event of a send is the one in a signed token that belongs to that form; a forged token gives no event and no routing.

The start and end are written as people read them, for example March 5, 2027 6:30 pm. An all-day event shows the date and the words all day, without a time.

Sending the Notification to the Event Author

Sugar Calendar events belong to a WordPress user, the author. In the feed you tick the notifications that go to that author. The add-on reads the author e-mail on the server at the moment the form is sent. Two more things can add an address: the Contact e-mail for registrations in the event box, and the contact e-mail that a visitor typed in the event submission form. Several addresses may be separated by commas.

  • Only the event author replaces the recipients of the notification.
  • The event author and the notification recipients keeps your own address (for example the office) and adds the author.
  • If an event has no author e-mail at all, you choose whether the notification goes to its own recipients or is not sent. An entry note records what happened.

Registrations, Seat Limits and Closing

The event ID is saved with every entry as entry meta, so the Gravity Forms entry list can be filtered by event. In the Sugar Calendar events list a Registrations column shows the number of registrations, or the number and the limit, for example 4 / 30. The number is a link to the filtered entries. The same count appears in the event box. Each registration counts one seat, or the number in the Number field you map as Seats per registration.

The Sugar Calendar events list with a Registrations column that shows 4 of 30, 2, 1 of 4 and 0 registrations for the listed events
Registrations per event in the Sugar Calendar events list, with the seat limit when there is one.

Set a Seat limit in the event box. If you leave it empty, the capacity set on the event itself in Sugar Calendar is used; if you set both, the box wins. A full event shows your message instead of the form, or shows the form and refuses the send with the message (your choice). A guest who asks for more seats than are left is told how many are left and nothing is saved. The check runs again when the form is sent. Two guests who send in the very same instant could both get through, so the page never promises more than that the limit is checked again when the form is sent.

Registration closes in three ways: the deadline you set in the event box (the end of that day), when the event has started, or when it has ended. The last two are a setting: close at the end of the event, at its start, or never. Closed events show your closed message and refuse a send even when the page was opened earlier.

Entries, Merge Tags and Notes

Every registration gets an entry note with the event, its date and where the notification went, and an Event box on the entry screen with a link to the event. In notifications and confirmations use these merge tags: {sugar_event_id}, {sugar_event_title}, {sugar_event_date}, {sugar_event_end}, {sugar_event_location}, {sugar_event_calendar}, {sugar_event_url}, {sugar_notify_email}, {sugar_capacity}, {sugar_seats_left}, {sugar_seats}, {sugar_listing_id} and {sugar_listing_url}. They are listed in the merge tag menu of the editor.

Quick Start: Submit an Event

  1. Build a form with a title, a description, a start date, a start time, an end date and an end time, a location, a calendar drop down, a contact e-mail, and an optional image upload.
  2. Add a feed to the form and choose Create an event from the entry. Map the fields in the Event fields section.
  3. Choose the status of the new event: Pending review (you publish it in Sugar Calendar) or Published.
  4. Put the form on a page. Send it. The event appears in the Sugar Calendar events list and the entry shows a note and a link.

Dates can come from Date and Time fields, or from one text field that holds both, for example 2027-03-05 18:30. Without an end the event ends when it starts. An end before the start refuses the event and the entry gets an error note. Map an All-day field with yes or no and the event is stored as all day: it starts at 00:00:00 on the first day and ends at 23:59:59 on the last day, the way Sugar Calendar stores it. The calendar is found by name, slug or ID; tick Create a calendar that does not exist yet if visitors may introduce new ones (not recommended for public forms). An upload becomes the featured image of the event. The description is cleaned of scripts before it is saved. A signed-in user is the author of the event; for visitors you can enter the ID of a user in the feed, or leave it empty.

The add-on uses the functions that Sugar Calendar provides for adding events, so the new event is a normal event: it is found by the calendar views, the events list and the calendar blocks.

When Sugar Calendar Is Not Active

The settings page, the feed list and the plugins screen show a message that Sugar Calendar is required. Feeds cannot be created, no form is changed and nothing is sent. Events, entries and forms stay as they are. When your license expires the events go back to normal in the same way.

Troubleshooting

  • The form does not show: check that the form has an active Event registration feed, that it is chosen in the settings or in the event box, and that placement is not set to the shortcode only.
  • The notification goes to the wrong person: the event author is the WordPress user in the Author box of the event. Check the contact e-mail of the event box as well.
  • The count is zero: only active entries with an event ID count. Entries from before you added the feed have no event ID.
  • A created event is missing from the calendar: pending events are shown in the events list, and appear on the public calendar when you publish them.

Frequently Asked Questions

Do I need a paid version of Sugar Calendar?

No. The add-on works with the free plugin. Recurring events are a paid Sugar Calendar feature, so the event feed makes single and all-day events.

Does it change Sugar Calendar?

No files are changed. The add-on uses the public functions and hooks of the plugin.

Does it send data to another service?

No. Everything happens on your own site.

What happens when my license expires?

The registration areas disappear and events behave as before. Forms, entries and events that exist stay as they are.

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