【问题标题】:How can I find the FormResponse response which caused the Google Form script to trigger如何找到导致 Google 表单脚本触发的 FormResponse 响应
【发布时间】:2021-10-20 04:10:48
【问题描述】:

我需要在FormResponse 中找到导致 Google 表单脚本触发的响应。 请注意,当同时进行多个提交时,使用最后一个响应有时是不正确的。我通过测试确认了。

【问题讨论】:

标签: google-apps-script google-forms


【解决方案1】:

您将把连接的response 作为event object 传递给函数。

function onFormSubmit(e/*event object passed, when triggered*/){
 const response/*The response this function is triggered with*/ = e.response;
}

【讨论】:

  • 谢谢。 e.response 引用收到的所有响应,而不仅仅是触发事件的特定响应。如何找到触发事件的具体响应?
  • @Julia 它引用了触发的具体响应。如果你得到了其他东西,请编辑你的问题以显示你的代码来证明你得到了其他东西。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-04-02
  • 1970-01-01
相关资源
最近更新 更多