简体   繁体   English

当用户提交 Google 表单时,是否可以使用提交的数据生成电子邮件?

[英]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.以下是PHPNode.js 的API 快速入门指南。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用户提交表单时触发Google DoubleClick代码 - Fire a Google DoubleClick tag when a user submits the form 表单提交剔除js时未提交复选框表单字段名称 - checkbox form field name is not submitted when form submits knockout js 当提交多个表单时,jQuery仅提交一种表单 - jQuery submits only one form when multiple forms are submitted 发送 Email 连同用户提交的 Google Leave 申请表,使用应用脚本、Google 表单、电子表格 - Send Email with the Google Leave request form submitted by the user, using app script, google form, spreadsheet JavaScript:用户提交时修改表单 - JavaScript: modify form when user submits 用户在表单中提交错误的电子邮件后如何回滚到以前的状态 - How to rollback to previous state after user submits a wrong email in a form 当用户提交表单时,如何提交到iframe并在主页上显示结果? - When the user submits a form how can it submit to an iframe and show a result on the main page? 用户提交PHP表单时,如何将文本文件发送到网站上所有打开的浏览器 - How can I send a text file to all open browsers on a website when a user submits a PHP form 使用托管字段时,如何检测用户何时使用 Braintree JavaScript SDK 提交表单? - How can i detect when user submits the form when using Braintree JavaScript SDK when using hosted fields? 表单验证有效,但当用户输入错误答案时仍会提交 - Form Validation Works But Still Submits When User Input The Wrong Answer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM