Home » Google AppScript6 March 2017

Google AppScript: Create Form using HTML, Publish Form as WebApp & Email Response

This article shows:

1) How to create Google Form using standalone HTML file
2) Email form submitted data to any particular email address

Create HTML file

We create a Form in a new HTML File.

– Go to http://script.google.com
– Go to File -> New -> Html file
– Type the name of the file, e.g. form.html
– Write the following code in it.

There is a Code.gs file by default in the script editor. Write the following code in it.

Note that we need doGet(e) function to publish project as WebApp. This function uses HTMLService to return HTML Output using the form.html file we created. We can also set the title of the page from here.

About publishing your script as web app is given here: https://developers.google.com/apps-script/guides/web

Hope this helps. Thanks.

Google AppScript

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed