Skip to content

Google Forms

Lots of servers run their applications, sign-ups and surveys in Google Forms: staff applications, tournament registrations, event feedback… The answers then sit in Google, and someone has to copy them to Discord by hand.

With the Google Forms module of the dashboard, each new response arrives on your server by itself:

  • a card in a channel with every answer, a few seconds after the form is sent;
  • roles for the member who answered, found from one question of the form (their Discord ID or username), given at once or, with applications, once a reviewer accepts the response;
  • statistics in the dashboard: responses per day, a breakdown of each question, the latest responses and a CSV export.

It works with a small script that you paste once into your form. The dashboard writes the script for you.

Page What it answers
Setting it up Link a form in the dashboard, install the script in Google Forms, send a test
The card & the role What the card looks like, how iHorizon finds the member, when the role is given, how applications are accepted or refused
Analytics & privacy The charts, what is kept and for how long, how the responses are protected

And a page to see it in action:

  • A complete example: a staff application form, answers in #applications, an @Applicant role and the team reviewing the statistics.

What happens when someone answers

Someone sends the form in Google Forms, like any other response. Google keeps it as usual.

The script in the form sends the response to iHorizon, signed with your form's secret.

Without the script, nothing reaches iHorizon: linking the form in the dashboard isn't enough.

iHorizon checks it. The form must be linked and set to receive responses, the signature must match the secret, and the response must have been sent in the last 5 minutes. A response that already arrived is not counted twice.

The response is saved and the statistics updated, even if the bot is offline at that moment.

The bot posts the card in the channel you chose, and gives the role to the member named in the answer, if you set a role and iHorizon finds them.

If the bot is offline, the response stays in the statistics, but the card and the role are not sent later.

The one rule to remember

The dashboard creates the link, the script sends the responses. After linking a form, install the script in Apps Script and run its install function once (it adds the trigger), or no response will ever arrive. The dashboard's Send a test button checks the Discord side (channel, card), not the script: send a real response to the form to check that.

Who can set it up

  • The module is in the dashboard, group Community, and is reserved to the Discord server owner and members with Administrator, because the bot posts messages and gives roles with its own permissions. Manage Server alone isn't enough, and the statistics and responses are visible only to them too.
  • iHorizon must be on the server.
  • The channel you choose must be one you can see and write in, and the role must be below your highest role (see the card & the role).
  • There is no command for this feature: everything happens in the dashboard. Each change is recorded in the activity log.

Quick start

  1. In the dashboard, open your server, then the Google Forms module, and click Link a form.
  2. Give it a Name, choose a Channel, and optionally Roles to give with the Question that identifies the member. Click Save.
  3. Under Install the script, paste your form's editor link (required), then copy the script: it's shown only once.
  4. Click Open script.google.com in the panel: in the new project, paste the script, save, choose install next to Run and click Run. Allow the access Google asks for: the panel's last step turns green on its own.
  5. Send a real response to your form: the card appears in the channel. Send a test checks the Discord side only.

Each step is detailed on the setup page, with a video tutorial.

Next