Chapter 4. Creating Interactive Forms
In the previous chapter, you learned about many of the features of GmailApp
and ContactApp
and you built lots of real-world applications. In this chapter, you will learn how to create Forms programmatically using FormApp
and HtmlService
. Also, you will learn about the doGet
and doPost
functions.
Creating Forms using script
In Chapter 1, Introducing Google Apps Scripts, you created a Form manually, but this time we will create Forms programmatically by script. First of all, we will create a Form with four choices and an Other option choice. For simplicity, we add places as a multiple choice radio group. Each choice is exclusively selectable. Create the function createForm
as shown here in a spreadsheet code file: ...
Get Learning Google Apps Script now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.