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