Creating a Form using HtmlService

Create a Form.html file, which we are going to use as an HTML template and enter the following code in it:

<!-- Form.html  -->
<!DOCTYPE html>
<html>

  <head>
    <base target="_top">
  </head>

  <body>
    <form>
      <h4>Where will you go for vacation?</h4>

      <input type="radio" name="places" value="Place 1" />Place 1

      <br />
      <input type="radio" name="places" value="Place 2" />Place 2

      <br />
      <input type="radio" name="places" value="Place 3" />Place 3

      <br />
      <input type="radio" name="places" value="Place 4" />Place 4
      
      <br />
      <br />
      <input type="submit" value="SUBMIT" />
    </form>
  </body>
</html>

Use the same name attribute value for radio type input fields so that they are all grouped together. This means they will work exclusively. Update ...

Get Learning Google Apps Script now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.