- 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 Line 11. You can optionally choose to hide responses in your notification by changing false to true on Line 13. - Click Save.
- Open the Triggers menu from the left sidebar (below the current Editor mode).
- Click "Add Trigger", and ensure the event type is set to "On form submit" for the "submitPost" function.
- Click save and provide the required permissions to the workflow as prompted.
Congratulations, your automation is now set up!