🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 23, 2026

How to Add an Add to Calendar Button and .ics Attachment to Gravity Forms

GravityExtra
How to Add an Add to Calendar Button and .ics Attachment to Gravity Forms

Somebody signs up for your webinar on Tuesday. On Thursday they have forgotten it. Nothing is wrong with the form, the e-mail was sent and the confirmation was shown, but the only reminder is a line of text in an inbox. The cure is old and simple: put the event in their own calendar at the moment they register. This guide shows how to add Add to Calendar buttons and an .ics attachment to Gravity Forms, step by step, with the Gravity Forms Add to Calendar Premium Add-on and without writing code.

What an Add to Calendar button really is

There are two mechanisms behind every Add to Calendar button, and it helps to know them, because they explain what a form can and cannot do.

The first is a link to a calendar service. Google Calendar has a page that takes an event from the address: its title, its start and end, a description and a location. Outlook on the web and Yahoo Calendar have the same kind of address. The visitor clicks, the service opens in a new tab with the event filled in, and one more click saves it. Nothing has to be installed and the form only has to build the right link.

The second is a calendar file. The iCalendar format, defined in RFC 5545 and usually met as a file ending in .ics, describes one or more events in plain text. Apple Calendar, Outlook on the desktop, Thunderbird and nearly every phone calendar can open it. An iPhone shows the event and an Add button as soon as the file is tapped. For Apple users, and for anyone whose calendar is not on the web, the file is the only way.

A good setup offers both: buttons on the confirmation page for people who are looking at the screen, and the file attached to the e-mail for people who will look at it again tomorrow.

Why Gravity Forms does not do it by itself

Gravity Forms stores answers. It knows that field 3 holds 2026-11-05 and that field 4 holds 2:30 PM, but it does not know that these two answers together are an event, that the title should come from the name typed in field 1, or that the time has to be written in universal time so that it is right in every time zone. That knowledge is what the add-on adds. You describe the event once, in a feed, and every entry of the form gets its own links and its own file.

Step 1: build a form with a date

Any form with a Date field will do. For an appointment or an event registration you will usually add a Time field, a text field for the place and a paragraph field for notes, and an e-mail field so that the confirmation has somewhere to go. Use the Date field for the day and not a text field. Gravity Forms stores a Date field as year-month-day whatever format the visitor sees, which means that 05/11/2026 can never be read as the 11th of May by mistake.

Step 2: describe the event in a feed

Open the form, choose Settings → Add to Calendar and add a feed. Give it a name that only you will see, then fill in the event.

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 title accepts merge tags. A title like Consultation with the name field makes every file say who it is for.
  • The start date is the Date field and the start time is the Time field. If the form has no time, the event starts at 9:00. For a day-long event switch on All-day event.
  • The end is optional. Choose an end date and end time field if the visitor picks them, or choose a length from 30 minutes to 8 hours.
  • Location, description and a web address accept merge tags too, so the place the visitor chose ends up in the calendar.
  • A reminder of 10 minutes up to 2 days before can be written into the file.

Get the time zone right

Time zones are where homemade Add to Calendar links go wrong. A visitor in Denver and a visitor in Berlin may book the same webinar, which starts at 15:00 in London. If the link says 15:00 without a zone, each calendar will use the visitor’s own clock and one of them will be late. The add-on avoids this by taking the time zone of your site, or one you type in, converting the start and the end to universal time, and writing them that way. Daylight saving is handled by the conversion, so an event in March and an event in November are both right.

Some events do not belong to a zone at all: a call at 8:00 in the morning in every office is at 8:00 in each one. Choose Floating for those and the clock time is kept as it is.

Step 3: put the buttons on the confirmation

Under Where to offer it the feed has a switch, Buttons on the confirmation, and a list of calendars. Google Calendar, Outlook.com, Apple Calendar and Yahoo Calendar are on by default. Microsoft 365 is there for work and school accounts, and a plain Download .ics button for everything else. Save the feed, submit the form and look at what a visitor sees.

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.

If you would rather decide where the buttons go, write {add_to_calendar} in the confirmation message, in the middle of a sentence if you like. When that tag is in the message the add-on does not add the buttons a second time.

Step 4: attach the .ics file to the e-mail

A confirmation page is gone when the tab is closed. The e-mail is not. On the same feed, tick the notification that goes to the visitor. When Gravity Forms sends that e-mail the add-on writes the calendar file, attaches it and deletes it again a moment later, so no copies pile up on your server. You can choose the file name; webinar.ics is easier to recognise than a string of numbers.

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.

You can also put the buttons into the body of the message with the same tag. In an HTML e-mail they are written with inline styles only, which is what mail programs need. In a plain text e-mail the tag becomes one line per calendar with its link. If you want a single link, for example to make your own button in an e-mail design, use {add_to_calendar_url:google}, and the same with outlook, yahoo, apple or ics.

Step 5: check an entry

Open any entry and you will find an Add to Calendar box with the title, the start and the links. If something is wrong with the date, the entry gets a note that says what, so you do not have to guess why a visitor saw no buttons.

Several events, and conditions

One form can have as many feeds as it has events. A conference registration might offer a Friday workshop and a Saturday talk, and the visitor ticks which ones to attend. Give each its own feed with conditional logic on the tick box. Only the events that were chosen get buttons and files, with a heading for each. A form that is used for appointments and for plain questions can offer a calendar event only when the visitor picks an appointment.

What the file contains

For anyone who likes to know, the file is small and readable. It begins with a calendar header that names the version and the product, then one event with a unique identifier that stays the same every time the file is made for that entry, the time it was created, the start, the end, the title, the description and the place. An organizer line is added if you filled in an organizer, and a reminder if you chose one. Lines are folded at 75 bytes and a line break typed by a visitor is written as an escape, so a long description is valid and nobody can sneak extra lines into your calendar file by typing them into a form field.

It is published as an event, not as an invitation. It has no list of guests and does not ask anyone to reply, so a visitor’s calendar simply offers to save it. That is what you want for a registration, and it also means no one gets a surprise request from your server.

Honest limits

  • The file and the links are a snapshot. If you move the date of an entry later, the visitor’s calendar is not updated. Send a new file if you must.
  • There are no repeating events yet. One entry makes one event for each feed.
  • The Outlook buttons use the address format that Outlook on the web accepts, which Microsoft does not publish as a fixed interface. Test them once with your own account.
  • Google, Outlook and Yahoo links cannot carry a reminder. Only the file can, so Apple and download users get the alarm and the others use their own default.

Frequently asked questions

Do I need a Google account or an API key?

No. The links are ordinary web addresses that your site builds from the entry, and the file is made on your server. Nothing is connected and nothing is sent to anyone.

Does it work for people who use neither Google nor Outlook?

Yes. The Apple button and the Download .ics button give a file that almost every calendar can import, and the same file is attached to the e-mail.

Will the visitor get a meeting invitation?

No. It is a calendar event they can save, without attendees and without a reply request.

Can I use it for a booking form?

Yes. Any form that has a date works: appointments, classes, tours, rentals, interviews, webinars, deliveries. If you also want the booking to appear in your own calendar, combine it with a calendar sync add-on, because the two do different jobs.

Which Gravity Forms versions are supported?

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.

Get started

The Gravity Forms Add to Calendar Premium Add-on gives every registration, appointment and booking form a calendar file in the e-mail and buttons on the confirmation, built from the entry itself. See the features, the price and the setup guide on the add-on page.

See the Add to Calendar add-on

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