[英]When a user submits a Google Form, can an email be generated with the submitted data?
I have a Google Form where users enter the data, is there anyway I could get the data in email when the user has submitted data?我有一个用户输入数据的谷歌表单,当用户提交数据时,我是否可以通过电子邮件获取数据?
If that doesn't work I want to create my own form using(PHP or JavaScript), is there a way where i could send the data from my form to Google Form.如果这不起作用,我想使用(PHP 或 JavaScript)创建自己的表单,有没有办法将表单中的数据发送到 Google 表单。
Thank you谢谢
Have you looked at http://code.google.com/googleapps/appsscript/guide_events.html#Installable你看过http://code.google.com/googleapps/appsscript/guide_events.html#Installable
section titled "More Detailed Events" ?标题为“更详细的事件”的部分?
Regarding your second paragraph about sending the data to your Google Form, you could do it by making the post url ( action =) attribute of your form the same where the the Google Form posts its data.关于将数据发送到 Google 表单的第二段,您可以通过使表单的 post url ( action =) 属性与 Google 表单发布其数据的位置相同来实现。 As long as your form input's have the same name it won't know where that the data isn't coming from the Google Form but rather from your site.
只要您的表单输入具有相同的名称,它就不会知道数据不是来自 Google 表单而是来自您的网站。
Yes, you can do this with an installable trigger from Google Apps Script (using JavaScript).是的,您可以使用来自Google Apps 脚本的可安装触发器(使用 JavaScript)来执行此操作。 Here is a code sample you can start with.
这是您可以开始的 代码示例。 Here's another example but less relevant as it's based on certain values in a cell, not a Google Forms submission.
这是另一个示例,但不太相关,因为它基于单元格中的某些值,而不是 Google 表单提交。
If you end up creating your own web form, you would submit it directly to Google Sheets (where all Forms submissions go) and not Google Forms.如果您最终创建了自己的网络表单,您可以将其直接提交到 Google 表格(所有表单提交的位置)而不是 Google 表单。 (There's no need for both a web form and Google Forms.) Also in this case, instead of using Apps Script, you'd be using the Google Sheets API from your web app.
(不需要同时使用网络表单和Google 表单。)此外,在这种情况下,您将使用网络应用程序中的Google Sheets API ,而不是使用 Apps Script。 Here are API quickstarts for PHP and Node.js to get started with.
以下是PHP和Node.js 的API 快速入门指南。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.