As per this guide: https://support.wix.com/en/article/how-to-send-an-email-on-form-submission
Form saves data fine to the dataset.
I created two backend JS files and modified with my SendGrid key.
On the page code, I am getting this error: TypeError: $w(...).onAfterSave is not a function
I think something seems to be missing in the guide from Wix, the event handler? But what do I add the event handler to? I tried adding it to the Dataset onSave() event, but that's not it.
Any help would be appreciated.