Capture the new data as it comes in with onFormSubmitIn the code.gs editor, rename the default function to onFormSubmit(e).function onFormSubmit(e) { }
You don’t have to name it this, but it will help you remember what it’s for! Next, click the little ‘stopwatc h’ icon to set up a trigger so that this runs automatically. You’ll have to give permissions to install this one:
You’ve now got a function that is prepared to run whenever a user submits a form response. If you’re new to coding, thisIsCalledCamelCase and is the convention for a function name. The (e) in the circle is shorthand for ‘event’ and is going to come from Google loaded up with information from the form (you’ll see soon).
From https://medium.com/@max.brawer/
No comments:
Post a Comment