Create a sign-up for sessions at a conference (original) (raw)

Skip to main content

Create a sign-up for sessions at a conference

Stay organized with collections Save and categorize content based on your preferences.

Coding level: Beginner
Duration: 5 minutes
Project type: Automation with a custom menu and an event-driven trigger

Objectives

About this solution

Create an end-to-end event registration system. If you have an event coming up, like a conference, you can set up a new calendar for conference sessions, create a sign-up form, and automatically email attendees personalized itineraries.

Information from Sheets being transferred to Forms and Calendar

How it works

This solution uses a custom menu in Google Sheets to implement an automated event registration system. The script creates a calendar with the conference events listed in the Sheets spreadsheet. Then, the script creates a form with the list of events that attendees can sign up for. After attendees fill out the form, the script adds the attendees to the calendar events and emails itineraries to them.

Apps Script services

This solution uses the following services:

Prerequisites

To use this sample, you need the following prerequisites:

Set up the script

  1. Click the following button to make a copy of the Create a sign-up for sessions at a conference sample spreadsheet. The Apps Script project for this solution is attached to the spreadsheet.
    Make a copy
  2. Click Conference > Set up conference. You might need to refresh the page for this custom menu to appear.
  3. When prompted, authorize the script. If the OAuth consent screen displays the warning, This app isn't verified, continue by selecting Advanced > Go to {Project Name} (unsafe).
  4. Click Conference > Set up conference again.

Run the script

  1. Click Tools > Manage Form > Go to live form.
  2. Fill out and submit the form.
  3. Go to calendar.google.com.
  4. At the left, make sure the box next to Conference Calendar is checked.
  5. Go to the dates of the events you signed up for and confirm you've been added as an attendee.

(Optional) Reset the solution

If you want to try this solution over again, or customize it to use your own event information, you need to reset some items that were set up when you first ran the script. To view the steps to reset the solution, clickReset the solution below:

Reset the solution

Step 1: Reset the stored script properties

If you try to run the script more than once, you'll be prompted with, Your conference is already set up. Look in Google Drive for your sign-up form! This happens because once the Conference Calendar is created, the calendar ID is stored as a script property. When the script runs, it checks if the calendar ID property already exists, and stops running if it does.

Follow the below steps to remove the existing calendar ID property:

  1. In the spreadsheet, click Extensions > Apps Script.
  2. In the Apps Script editor, select resetProperties from the function dropdown list and click Run.

Step 2: Delete the Conference Calendar

Every time the script runs, it creates a new calendar. If you don't want to keep the original calendar that was created, follow these steps:

  1. Go to calendar.google.com.
  2. Next to Conference Calendar, click Options for Conference Calendar > Settings and sharing.
  3. Scroll to the bottom of the settings and click Delete.

Step 3: Delete the form submit trigger

The script creates a trigger for form submissions each time you run it. To avoid multiple triggers that result in duplicate emails, remove the original trigger. Follow these steps:

  1. In the spreadsheet, click Extensions > Apps Script.
  2. In the Apps Script project, at the left, click Triggers .
  3. Next to the trigger, click More > Delete trigger.

Each time you run the script, it creates a new form. Follow these steps to unlink the form from your spreadsheet and delete it:

  1. In the spreadsheet, right click the Form responses sheet and clickUnlink form > Ok.
  2. Right click the Form responses sheet again and click Delete > Ok.
  3. Go to forms.google.com.
  4. Right click Conference Form and click Remove > Move to trash.

Once you've reset the solution you can add your own data, or continue to use the sample data, and run the script again.

Review the code

To review the Apps Script code for this solution, click View source code below:

View source code

Code.gs

Contributors

This sample is maintained by Google with the help of Google Developer Experts.

Next steps

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.