I have a Google form linked to a trigger. when an onSubmit event is triggered the I'm getting an empty response object
function setupTriggers() {
ScriptApp.newTrigger('onSubmit')
.forForm('1n78vh9LfdUBCdKY4hcMZXEyYZw7ZxdE689-ihhczPow')
.onFormSubmit()
.create();
}
function onSubmit(e) {
console.log(JSON.stringify(e));
}
Log
{"authMode":"FULL","response":{},"source":{},"triggerUid":"1655010400613789390"}
When a form is submitted the event gets triggered, but the event response is empty.
Am I missing any steps while configuring the trigger?