##Introduction

TTResponds is a Google Apps Script that allows you to automatically send a confirmation to people who’ve filled out a Google Form.

It’s been available for a while in the Script Gallery, but I haven’t gotten around to write about it. The reason I’m doing so right now, is because I’ve received a couple of returning questions that I can probably better answer right here.

Installing

First login to your Google Docs environment, docs.google.com and Google Apps both work fine. After that, choose to create a new Form.

New form

This will present you with a pop-up that allows you to customize the fields. For basis functionality it should at least contain a name field first and an email address second. After that you can add anything you want.

Setup form

Clicking save will send you to the Spreadsheet, setup to receive form submissions. The next step is to add TTResponds. You can do so by clicking ‘Tools’ and then ‘Script gallery…’.

Script gallery

Search for ‘TTResponds’ and click install.

Find TTResponds

Authorize the script to read your Spreadsheet and send out emails.

Accept

A new menu item called ‘TTResponds’ just appeared. Click it and select ‘Create config’. This should add an extra sheet called ‘TTRespondsConfig’, you can change the properties to provide a more relevant response. After you’re done, make sure all ‘Triggers’ are setup correctly by clicking ‘Tools’ and after that ‘Script editor…’.

Script editor

In the pop-up select ‘Triggers’ and then ‘All your triggers…’.

Triggers

Make sure your setup looks like the image above. If it doesn’t, click ‘Add a new trigger’ and set it to ‘onFormSubmit’, ‘From spreadsheet’ and ‘On form submit’. That’s it! Fill out your own form and you’ll receive a confirmation automatically!

HTML Email

Per default the script sends text-only emails. You can change this to HTML email pretty easily (I’ll probably add it as an option in an update). First open the script editor again and navigate to line 119.

HTML email

You’ll see that is says:

{ name: _config.from }

Change it to this:

{ name: _config.from, htmlBody: _config.body }

The script will now send the confirmation as HTML, allowing you to send a fancier response .

Collaborating

I’ve created a GitHub repo for TTResponds. If you’re adding features, or fixing bugs, please fork the project and send me a pull request.

Let me know

It would be awesome if you let me know if you use and/or like the script through the comments, thanks!