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

发布于 2024-10-01 15:41:51 字数 148 浏览 0 评论 0原文

我有一个 Google 表单,用户可以在其中输入数据,当用户提交数据时,我是否可以通过电子邮件获取数据?

如果这不起作用,我想使用(PHP 或 JavaScript)创建自己的表单,有没有一种方法可以将数据从我的表单发送到 Google 表单。

谢谢

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.

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

遥远的她 2024-10-08 15:41:51

你看过吗
http://code.google.com/googleapps/appsscript/guide_events.html#Installable

标题为“更多详细事件”的部分?

Have you looked at
http://code.google.com/googleapps/appsscript/guide_events.html#Installable

section titled "More Detailed Events" ?

甩你一脸翔 2024-10-08 15:41:51

关于将数据发送到 Google 表单的第二段,您可以通过将表单的 post url (action=) 属性设置为 Google 表单发布数据的位置来实现。只要您的表单输入具有相同的名称,它就不会知道数据不是来自 Google 表单而是来自您的网站。

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

慢慢从新开始 2024-10-08 15:41:51

是的,您可以使用 可安装触发器来执行此操作="https://developers.google.com/apps-script" rel="nofollow noreferrer">Google Apps 脚本(使用 JavaScript)。您可以从以下代码示例开始。这是另一个示例,但相关性较低,因为它基于单元格中的某些值,而不是谷歌表单提交。

如果您最终创建自己的网络表单,则可以将其直接提交到 Google 表格(所有表单提交的位置),而不是 Google 表单。 (不需要同时使用网络表单和 Google 表单。)同样在这种情况下,您将使用 Google Sheets API(来自您的网络应用)。以下是 PHPNode.js 开始使用。

Yes, you can do this with an installable trigger from Google Apps Script (using 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.

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. (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. Here are API quickstarts for PHP and Node.js to get started with.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文