What actually triggers the google appscript onFormSubmit event when form reponses are sent to a google sheet?
Asking because when looking at the google API example for handling form responses, they use a linked sheet and monitor submit event from there
ScriptApp.newTrigger('onFormSubmit').forSpreadsheet(ss).onFormSubmit().create();
The onFormSubmit submit is linked to the sheet, but the object is a sheet, so does entering any data into the sheet itself count or is it only from the Form that is linked to the Sheet? If I wanted to reference the form by ID, would I use the Form ID or the linked Sheet ID? Would the event data still be the same?
Any docs as to what is going on under the surface that could help clarify how this works?