How to Send Email Notifications in Google Forms

Want to create a signup for your blog? Or do you need to organize an event for your office and need everyone’s information? With Google Forms you can create an online form in minutes and send it via email or even embed it on your blog post. While creating a form is super easy, sending email notifications to yourself and to the person signing up is a little trickier.

In this post, we’ll breakdown the steps so you can automate the process.

Step 1: Create Form

First, create your Google Form. For this post, we’ll use a very simple form.

First, create your Google Form.

Step 2: Set notification

Go to the spreadsheet where all the responses are stored. Simply click on “View Responses.” Once you’re in the spreadsheet, click on “Tools” and choose “notification rules” on the drop-down. Remember this notification is going to be sent to your email and not to the user who’s signing up. This step is convenient, as it keeps you from manually checking the activities on your form.

Set  notification rules.

Now you can choose when to send the notification and how often. If the form requires urgent response, I’d recommend choosing “Email – right away.”

Choose when to send the notification and how often.

Step 3: Add code for confirmation email

You may also want to send a confirmation email to the user once he or she submits the form. It can be a short email saying that you’ve received the information. It also assures the user that you’re working on the details submitted.

This part requires a bit of coding. Don’t worry though; it’s super simple! First, on the responses spreadsheet, click “Script editor.”

Click 'Script editor.'

Next, choose Blank Project since you will be using your own code for this specific form.

Choose Blank Project.

Although you have chosen a blank page, there might be preloaded codes. Make sure to delete all of them and start with a clean slate. Now copy and paste this code:

function myFunction(e){
    var userName = e.values[1];
    var userEmail = e.values[2];
    var date = e.values[3];
    var subject = "Form Submitted";
    var message = "Thank you," + userName + "for choosing " + date;

MailApp.sendEmail (userEmail, subject, message);
}

Note: The above code assumes that your first field is “User name”, second field is “user email” and third field is the “Date”. You have to change the value accordingly if your input field order is different.

Do you want to know how these codes were generated? Watch this video from Jeff Everhart. He gives a detailed explanation of how the values are assigned.

Step 4: Set up trigger to send confirmation emails automatically

Another very important piece of the puzzle: set up the trigger. Once you’re done with the code, it’s time to tell the spreadsheet when to send the confirmation email. Go to “Resources” and choose “Current Project’s Trigger.” You’ll then be routed to this screen:

Tell the spreadsheet when to send the confirmation email.

Choose the options as indicated in the photo. Upon hitting save, you’ll need to authorize to run this code.

Upon hitting save, you'll need to authorize to run this code.

Click on “Continue” to finish setting up the code and the trigger.

Step 5: Test code

Don’t share your Google Form with the public yet. This last step is extremely crucial, so you can fix everything before your form goes live. Go back to your form and click “View live form.” Next, fill out the form and make sure to hit “Submit.”

Test out your form.

Open your Gmail account. In your inbox you should have the confirmation email with the subject “Form Submitted” or whatever subject you’ve written. This was the email that I received when I tested the form and the confirmation code.

You should have the confirmation email.

As you can see, it looks really bare. However, you don’t need fancy codes right away. After testing the code and having it be fully functional, you can then add more HTML codes to the email’s body.

Google Forms is a convenient and extremely useful tool to almost everyone, most especially to huge websites and businesses who are constantly running surveys.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Irene Enriquez Avatar

Read next

Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
A species of jellyfish called Turritopsis dohrnii can revert its adult cells back to a juvenile polyp stage when injured or starving, effectively restarting its life cycle, and biologists have so far failed to identify any natural limit to how many times it can do this.
A Japanese man named Jiroemon Kimura, who lived to 116, was born in 1897 when Queen Victoria still ruled and died in 2013, meaning a single human life personally overlapped with the invention of the airplane, the atomic bomb, the internet, and Instagram
The Hollywood sign originally read HOLLYWOODLAND when it was built in 1923 as a real estate advertisement for a housing development, and it was only meant to stand for 18 months, but nobody ever got around to taking it down and the city eventually adopted it as a landmark
Almost all of the world’s internet traffic does not travel by satellite but through fibre-optic cables lying on the ocean floor, a hidden web of wires crossing the deepest parts of the sea to connect the continents.
People who flip their phone face down on every table aren’t being secretive. They figured out that staying interruptible meant handing their time to whoever rang first
Twitch vs. Facebook Gaming vs. YouTube Gaming: What’s the Best Live Game Streaming Platform?
Chrome Extensions Ownership Transfer is a Direct Threat to You: How to Stay Safe