问题
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