Google forms script on form submit - event does not have FormResponse object

血红的双手。 提交于 2019-12-08 04:55:25

问题


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

I created a function:

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

Then I went to Edit > Current Project Triggers

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

  • Select Event Source = From Form
  • Select Event Type = On form submit

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

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

It does not have a response object

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?


回答1:


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



来源:https://stackoverflow.com/questions/53138175/google-forms-script-on-form-submit-event-does-not-have-formresponse-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!