【文件属性】:
文件名称:form-to-google-sheets:将HTML表单提交的文件存储在Google表格中
文件大小:14KB
文件格式:ZIP
更新时间:2021-04-28 19:08:25
javascript google-sheets html-form fetch-api promise-polyfills
提交表单至Google表格|
如何使用普通的'ol JavaScript(ES6), , 和创建HTML表单,以将提交的表单数据存储在Google表格中。
1.创建一个新的Google表格
首先,转到然后使用Blank模板Start a new spreadsheet 。
将其重命名为“ Email Subscribers 。 无论如何,都没关系。
将以下标题放入第一行:
一种
乙
C
...
1个
时间戳记
电子邮件
要了解如何添加其他输入字段,请。
2.创建一个Google Apps脚本
单击Tools > Script Editor… ,这将打开一个新选项卡。
将其重命名为“将Submit Form to Google Sheets 。 在编辑脚本之前,请确保等待它实际保存和更新标题。
现在,在Code.gs标签中删除function myFunction() {}块。
【文件预览】:
form-to-google-sheets-master
----form-script-commented.js(4KB)
----form-script.js(1KB)
----index.html(516B)
----LICENSE(11KB)
----demo()
--------favicon.png(975B)
--------CNAME(39B)
--------index.html(3KB)
--------main.css(2KB)
----README.md(9KB)