- Open a new or existing Google Form in edit mode.
- Select Script Editor from the "..." dropdown in the top right corner.
- Replace the code in the script editor with the contents of script.js.
- Enter a Project Name (i.e. Discord Webhook) and click Save (but do not close the script editor yet!).
Assumed: you have created a Discord account, joined a Discord server with the "Manage Webhooks" permmission enabled and there is at least one text channel (to display the notifications).
- Navigate to Server Settings > Integrations > Webhooks > Create Webhook. Select the channel you want the notifications to be pushed to.
- Click "Copy Webhook URL".
- In the script editor, paste the Webhook URL between the '' symbols on the Line 6. You can optionally choose to hide responses in your notification by changing false to true on Line 13.
- Click Save.
- Navigate to Edit > Current Project's Triggers and select Add Trigger.
- Change the event type to "On form submit" and click Save.
- Provide permissions to the workflow as prompted.
Congratulations, your automation is now set up!
Note: if you cannot find the Edit menu in the script editor, make sure you are using the Legacy editor.