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

Gravity Forms Add to Calendar Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Entries & Workflow
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. Create an event feed
  5. The event
  6. Time zones
  7. Details
  8. Where to offer it
  9. Attach the .ics file to notifications
  10. Buttons on the confirmation
  11. Merge tags
  12. On the entry screen
  13. For developers
  14. Privacy and security
  15. Limits to know about
  16. Troubleshooting
  17. Questions
  18. Does it need Google or Microsoft to be connected?
  19. Is it the same as adding the entry to my own Google Calendar?
  20. Can one form offer two events?
  21. Will the e-mail still work if the visitor has no calendar?

Video walkthrough

Gravity Forms Add to Calendar: Google, Outlook, Apple Calendar Buttons and .ics Files
Video tutorial: Gravity Forms Add to Calendar Watch on YouTube

The Gravity Forms Add to Calendar Premium Add-on turns a Gravity Forms entry into a calendar event for the person who filled in the form. It does two things. It attaches an .ics calendar file to the notifications you choose, and it shows Add to Calendar buttons for Google Calendar, Outlook, Apple Calendar and Yahoo Calendar on the confirmation. It is made for event registrations, appointments, bookings, class sign-ups, webinars and any form that has a date.

Everything is built from the answers in the entry. The add-on calls no outside service, needs no Google or Microsoft account and stores nothing new in the database.

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 active license key for this add-on.
  • A form with a Date field, and usually a Time field, that holds the day and the hour of the event.

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

Install and activate

  1. Install and activate the add-on like any plugin, after Gravity Forms.
  2. Open Forms → Settings → Add to Calendar and enter your license key.
  3. In the same screen choose the heading, the style and the colour of the buttons.

Create an event feed

Every event is described by a feed. Open the form, go to Settings → Add to Calendar and add a feed. A form can have several feeds, for example a morning and an afternoon session, and each feed can have conditional logic, so the event is offered only when an answer says so.

The Add to Calendar feed settings in Gravity Forms: event title, start date and time fields, length, time zone, location, description, reminder, notifications and calendars
One feed describes one event: the title, the fields that hold the date and time, and where to offer it.

The event

  • Event title: the name in the calendar. Merge tags are allowed, so a title such as Dentist visit for the name typed in the form works.
  • Start date: a Date field, or a text or hidden field that holds a date. A Date field is the safest choice because Gravity Forms stores it as year-month-day whatever the display format is.
  • Start time: a Time field. If the start field already holds a time, such as 2026-11-05 14:30, that time is used. If there is no time at all the event starts at 9:00.
  • All-day event: ignore the times and make an all-day event.
  • End date and end time are optional. For an all-day event the end date is the last day, so a workshop from the 5th to the 6th covers both days.
  • Length when there is no end: 30 minutes up to 8 hours. An end that is not later than the start is ignored and this length is used instead.

Time zones

The default is the time zone of the site (Settings → General), and the add-on converts the start and the end to universal time, so the event lands at the right hour in the visitor’s calendar wherever the visitor lives and whatever daylight saving rules apply on that day. You can also type another time zone name, such as Europe/London, for events held somewhere else, or choose Floating for an event whose clock time is the same everywhere, such as a call at 8:00 local time in every office. A zone name the add-on does not know falls back to the site time zone.

Details

  • Location, Description (plain text) and Event web address (http or https only), all with merge tags.
  • Organizer name and e-mail, written into the file.
  • Reminder: none, or 10 minutes, 30 minutes, 1 hour, 1 day or 2 days before. The reminder is part of the .ics file. The Google, Outlook and Yahoo links use the reminder settings of the visitor’s own calendar, because those services do not accept one in a link.

Where to offer it

Attach the .ics file to notifications

Tick the notifications of the form that should carry the file. The usual choice is the e-mail to the person who registered. The file is made when the notification is sent, attached, and deleted again as soon as the e-mail has gone. It is named as you choose, for example open-house.ics. If two feeds attach a file with the same name to one e-mail, the second gets a number so that nothing is lost.

The file follows RFC 5545, the iCalendar standard, so Apple Calendar, Outlook, Google Calendar, Thunderbird and every phone calendar open it. It is sent as a calendar event to save, not as a meeting invitation: it has no attendee list, so nobody receives a reply request.

A notification e-mail with the Add to Calendar buttons in the message and an attached calendar file named workshop.ics
The notification: the buttons in the message and the calendar file attached.

Buttons on the confirmation

When Buttons on the confirmation is on, the buttons appear under the confirmation message of the form. They are shown only for a text confirmation, not for a redirect, and only when the feed’s conditional logic is met. Choose the calendars with the checkboxes: Google Calendar, Outlook.com (for personal accounts), Microsoft 365 (for work and school accounts), Apple Calendar, Yahoo Calendar and a plain Download .ics for anything else.

The Gravity Forms confirmation message with an Add to your calendar heading and four buttons: Google Calendar, Outlook.com, Apple Calendar and Yahoo Calendar
The confirmation: one button for each calendar the visitor might use.

The Google, Outlook and Yahoo buttons open that service in a new tab with the event filled in, and the visitor presses Save. The Apple and .ics buttons download the calendar file, which opens in Apple Calendar on an iPhone or a Mac and in most other calendars. Each visitor gets a link of their own, signed so that it cannot be guessed or changed.

Merge tags

To place the buttons yourself, put {add_to_calendar} in the confirmation message or in the body of a notification. When the tag is in the confirmation the add-on does not add a second set of buttons. In an HTML notification the buttons use inline styles only, so they look right in mail programs. In a plain-text notification the tag gives one line per calendar with its link.

  • {add_to_calendar}: the buttons of every event that applies to the entry. With more than one event each block shows its title.
  • {add_to_calendar:feed=12}: the buttons of the feed with that number only.
  • {add_to_calendar_url:google}: only the link, for your own button or text. Also outlook, office365, yahoo, apple and ics, and {add_to_calendar_url:ics:feed=12} for one feed.

Both tags are in the merge tag list of the form editor.

On the entry screen

Every entry that has an event shows an Add to Calendar box with the title, the start and links to Google, Outlook, Yahoo and the .ics file. It is handy for checking what a visitor received or for sending the link by hand. If a feed could not build the event (a date is missing or cannot be read), the entry gets a note that says why, for example Add to Calendar: no event was created, the start date field is empty, and the visitor sees the confirmation without the buttons.

For developers

  • gfatc_get_calendar_urls( $entry_id, $feed_id ) returns the links of an entry as an array with the keys google, outlook, office365, apple, yahoo and ics. The feed number is optional.
  • gfatc_get_ics( $entry_id, $feed_id ) returns the text of the .ics file, or an empty string when there is no valid event or no license.
  • The filter gfatc_event_values changes the values that build the event (title, start_date, start_time, end_date, end_time, all_day, location, description and more) before they are checked.
  • The calendar file ends every line with a carriage return and a line feed and folds lines at 75 bytes without breaking a character, as RFC 5545 asks.

Privacy and security

The add-on contacts no outside service. The calendar links are built on your server and contain only what you put in the feed. The download address contains the entry number, the feed number and a signature made with the secret keys of your site, so it works only for the person who got it, and only while the entry is active, in no trash or spam, the feed is active and its logic is met. A changed number, a changed signature or a missing one gives a plain not found page. Text from the form is escaped as the standard demands, so a line break typed into a form cannot add a property or a second event to the file. The folder for the temporary attachment is closed to direct requests and cleaned up.

Limits to know about

  • The file and the links are a snapshot of the entry when they are opened. If you edit the entry later the visitor’s calendar is not changed.
  • There are no repeating events and no attendee lists in version 1.0.0. One entry makes one event for each feed.
  • The Outlook links use the address format that Outlook on the web accepts for new events. Microsoft does not publish it as a fixed interface, so test those two buttons with your own account when you set a form up.
  • With no valid license nothing is attached or shown, and the entry gets a note.

Troubleshooting

  • No buttons: check the license, that the feed is active, that the confirmation is a text message and not a redirect, and that the start date field has a value.
  • The time is wrong by some hours: check the time zone of the feed and of the site. The Time field is read in the zone you choose.
  • No attachment: tick the notification in the feed. Notifications that are turned off or that have their own logic are not sent, and nothing is attached to them.
  • A button shows the wrong date: use a Date field for the start. A typed text is read as year-month-day or as month/day/year.

Questions

Does it need Google or Microsoft to be connected?

No. Nothing is connected. The buttons are ordinary links and the file is made on your site.

Is it the same as adding the entry to my own Google Calendar?

No. This add-on puts the event in the visitor’s calendar. To write entries into the calendar of the site owner you would use a calendar sync add-on.

Can one form offer two events?

Yes. Add one feed for each event. Both appear on the confirmation and both files can be attached.

Will the e-mail still work if the visitor has no calendar?

Yes. The message is unchanged, and the attached file is just one more attachment.

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