表单提交上的Google表单脚本-事件没有FormResponse对象 [英] Google forms script on form submit - event does not have FormResponse object

查看:40
本文介绍了表单提交上的Google表单脚本-事件没有FormResponse对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Google表单,并且已向其中添加了一个脚本.

I have a google form, and have added a script to it.

我创建了一个函数:

    function myFunction(e)
    {    
      Logger.log(e);
    }

然后我去编辑>当前项目触发器

Then I went to Edit > Current Project Triggers

我添加了一个新触发器,选择myFunction和以下设置:

I added a new trigger, selecting myFunction, and the following settings:

  • 选择事件来源=来自表单
  • 选择事件类型=提交表单上

提交表单并查看日志时,我看到:

When I submit the form and check the logs, I see:

{authMode = FULL,源= Form,triggerUid = 25580}

{authMode=FULL, source=Form, triggerUid=25580}

它没有响应对象

我还设置了许多其他表格,并且正在使用它们,并允许我使用响应对象.我已经有一段时间没有创建表格了,现在我无法让他们正常工作.据我所知,我已经将它们设置为与其他设置相同.

I have a number of other forms set up and are working and allow me to use the response object. I haven't created a form in a while - and now I can't get them to work. I've set them up the same as the others as far as I can see.

关于为什么我不再能够访问事件的响应对象的任何想法?

Any idea as to why I am no longer able to access the response object on the event?

推荐答案

这是一个错误-我按照建议在Tracker中提交了一个问题.他们提供了一种解决方法,直到修复该问题为止.

This is a bug - I submitted an issue in the Tracker as suggested. They have given a workaround until they fix it.

https://issuetracker.google.com/u/2/issues/118921815

这篇关于表单提交上的Google表单脚本-事件没有FormResponse对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆