Instead of adding a script to the table receiving responses from the form (as in the response of Mogsdad), I added a script that is launched by the "Submit form" button.
Step 1: Create a Google Form First

Step 2: Then from the menu, select Tools → Script editor

Step 3: gives your function a name similar to onSubmit()

Step 4: Write some code to send an email like this, then click on the “Run” button
function onSubmit() { MailApp.sendEmail("fred@email.com,alice@email.com", "Subject", "A new application has been submitted.\n\n" + "Here is the link to all Applications:\n" + "https://docs.google.com/spreadsheets/x/1-fdasjhFAKEfdaahfkhsa/", {name:"From Name"}); }
Step 5: in the script editor menu, click Run or click the Play button on the toolbar to verify your code. (for example, make sure you receive a letter)

Step 6: in the script editor menu, click Resources-> Current Project Triggers

Step 7: select Event settings From form On form submit

Step 8: Then, in the "Form Editor" menu, select Tools → Script Manager and make sure that the script is selected

Step 9: try the form. You should receive an email after clicking the submit button.

Johnb
source share