# How to send HTML form submissions to Discord

> Send website form submissions to a Discord channel with SiteBackend. Create an incoming webhook, connect your HTML form, and test delivery.

Source: https://sitebackend.com/blog/html-form-to-discord · Updated: 2026-10-15

To send HTML form submissions to Discord, connect your form to SiteBackend and add a Discord notification channel using an incoming webhook URL. SiteBackend stores each accepted inbox submission and posts a notification to the Discord channel you selected. You don't need to run a Discord bot.

Your website uses a public form endpoint. The Discord webhook URL is saved separately in SiteBackend, so it doesn't need to appear in the page's source code.

## 1. Create your form endpoint

[Sign up](https://sitebackend.com/signup), click **Add site**, and open that site. Create a **New form**, then copy its endpoint. Use it as the `action` in this complete HTML form:

```html title="contact.html"
<form action="https://api.sitebackend.com/forms/YOUR_FORM_ID" method="POST">
  <label>
    Name
    <input type="text" name="name" autocomplete="name" required />
  </label>
  <label>
    Email
    <input type="email" name="email" autocomplete="email" required />
  </label>
  <label>
    Message
    <textarea name="message" rows="6" required></textarea>
  </label>
  <input type="text" name="_gotcha" tabindex="-1" autocomplete="off" style="display:none" />
  <button type="submit">Send message</button>
</form>
```

Replace `YOUR_FORM_ID` with your actual form ID. Keep `_gotcha` hidden and empty. This version submits without JavaScript and redirects to a thank-you page.

For domain restrictions and redirect settings, see [how to add a contact form to a static website](https://sitebackend.com/blog/static-website-contact-form).

## 2. Create a Discord incoming webhook

In Discord, open **Server Settings → Integrations**, create a webhook, and select the text channel where submissions should appear. Copy its webhook URL. Discord's [official webhook setup guide](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) describes the controls.

If those controls aren't available to you, ask a server administrator to create the webhook for the intended channel.

Choose a destination whose members should be able to read the submitted fields. A message sent to a shared Discord channel is visible to people who can access that channel.

## 3. Add the Discord channel in SiteBackend

Open **Form → Notifications → Add channel** and select **Discord**. Paste the URL into **Webhook URL**, save the channel, and confirm that its test message appears in Discord. Keep the notification channel enabled.

Use the **Discord** type for this integration. It formats the submission into Discord's message structure. SiteBackend's generic **Webhook** type sends a different JSON payload for custom receivers.

The Discord URL belongs in these settings. Your HTML form's `action` should continue to point to SiteBackend.

## 4. Test from the published website

Submit a message with distinctive text, such as “Discord contact form test”. Verify all three steps:

1. The browser reaches the expected thank-you page.
2. The submission appears in the correct SiteBackend form's inbox.
3. A notification appears in the selected Discord channel.

SiteBackend sends an embed containing submission fields and a link to the dashboard. The notification includes up to 25 fields and shortens long values; open the dashboard for the full submission. Notifications disable automatic mentions from submitted content.

## What if nothing appears in Discord?

| What you see                                        | What to check                                                                               |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| The channel test fails                              | Confirm the copied webhook still exists and belongs to the intended channel.                |
| The test works but a live submission doesn't notify | Check the form endpoint, spam folder and monthly usage.                                     |
| Messages appear in the wrong channel                | Check the destination selected for the Discord webhook.                                     |
| A previously working channel fails                  | Inspect the SiteBackend delivery log and check whether the webhook was deleted or replaced. |

Use the channel's **Test** action after updating the URL. Failed deliveries have retry controls in the dashboard; see [notifications](https://sitebackend.com/docs/forms/notifications).

## Can I notify Discord and email together?

Yes. Add an Email channel to the same form and keep both enabled. Each form can have up to ten notification channels. The [form-to-email guide](https://sitebackend.com/blog/html-form-to-email) covers recipient setup.

Spam doesn't send notifications. On Free, submissions past the monthly limit are saved but hidden until you upgrade and don't send notifications either. Check [plans and limits](https://sitebackend.com/docs/workspace/plans-and-limits) when testing a busy form.
