Hello!
I am new to using Google App Script and have spent the better part of the day trying to get what I thought would be a simple script working. :(
Scenario: I have a Squarespace form configured to store submissions in a Google Sheet on the submit button. I went into the Google Sheet, went to Extensions and added a Google script to send an acknowledgement email upon submission of the Squarespace form. Additionally, I setup a Trigger for 'onformsubmit'. Below are screenshots of the error that I'm receiving and the trigger setup.
Problem: Google Sheet is getting updated as expected (see screenshot below) but I am not receiving the acknowledgement email as expected. I'm receiving the following error:
TypeError: Cannot read properties of undefined (reading 'namedValues')
If anyone has experienced this issue and can help me I would greatly appreciate it!
Thanks in advance for your help!
Denise
