O'Reilly logo

Learning Google Apps Script by Ramalingam Ganapathy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required