My apps script has a form submit trigger configured as shown below: https://i.sstatic.net/FNgCD.png
The function onSubmit
looks like this:
function onSubmit(e) {
console.log("Form submitted", JSON.stringify(e.namedValues));
console.log("Form submitted", JSON.stringify(e));
}
However, when I submit the form, the trigger fires and the function executes. But strangely, e.namedValues
is undefined.
https://i.sstatic.net/BGMdS.png
What could be causing this issue? (Even linking a spreadsheet to the form did not change the outcome).