How to Send a Discord Alert for a New Form Submission
Post Discord channel alerts when someone submits your site form. Connect your server once, route support questions to Discord, and invite visitors to join your community on the thank-you page.
MyFormConnect Team
If your team already uses Discord, routing new form submissions there is a natural fit. A message in a dedicated channel is harder to miss than an email buried in a shared inbox, and the whole team sees it at once. This guide shows how to set up Discord alerts for new form submissions — without creating webhooks or exposing secrets in the browser.
Some tutorials POST form data straight to a Discord webhook from JavaScript. The webhook URL is the credential — anyone who copies it from your page source or network tab can spam your channel indefinitely.
Webhook URLs and bot tokens belong on a server, never in frontend code. With MyFormConnect, you connect your Discord server once in the dashboard and pick a channel per form. Our platform bot posts submission alerts server-side after each clean submission — your HTML never contains a webhook URL.
Your HTML form posts to a MyFormConnect endpoint. The endpoint stores the submission, runs spam checks, and — when Discord is enabled for that form — sends an embed to the channel you selected. You can route different forms to different channels (leads, support, community questions) without touching your site code again.
Discord linking uses OAuth in the dashboard. Open MyFormConnect on a desktop browser (the connect flow is easiest there), then:
No manual webhook setup and no bot token to copy. The bot needs permission to view channels and send messages in the channels you pick.
Each form can post to a different channel — useful when sales leads and support questions should not share the same feed.
<form action="https://myformconnect.io/f/YOUR_FORM_UUID" method="POST">
<label for="name">Name</label>
<input id="name" name="name" type="text" required />
<label for="email">Email address</label>
<input id="email" name="email" type="email" required />
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
<!-- Identify which form/page this submission came from -->
<input type="hidden" name="page_source" value="Contact page" />
<button type="submit">Send message</button>
</form>Set Redirect URL in form settings for a normal POST. With Ajax/fetch, handle success navigation in your own JavaScript.
Discord works well when you want visitors to ask a question on your site and your team (or community) to pick it up in Discord — without exposing a public support email or managing tickets in a separate tool.
Your team sees the full submission in Discord immediately and can reply there. Community members in the server can discuss and help each other on ongoing topics, while MyFormConnect keeps the original submission in your dashboard as the record of what was asked.
For a lighter-touch variant, post to a staff-only channel first and use the thank-you page purely as the community onboarding step — the form captures the question; Discord is where the conversation continues.
Each new clean (non-spam) submission triggers an embed in your chosen channel. A typical alert looks like:
📬 New submission — Contact form
Contact form: Contact form
────────────────────────
Name Email
Jan de Vries [email protected]
Message
Interested in your enterprise plan — can we set up a call?
Open submission
View in dashboard
Submitted 27 Jul 2026 at 14:45 • #12345The title follows your form template (for example "Contact form" or "New submission"). Standard fields like name and email appear first; other form fields follow. A link opens the full submission in your MyFormConnect dashboard.
page_source hidden field to distinguish messages in the embedDiscord alerts work best alongside email notifications, not instead of them. Use Discord for real-time awareness — someone on the team sees the message and can respond quickly. Use email as the durable record. Both notifications come from the same submission; the endpoint handles both in parallel.
Enable spam filtering before you connect Discord. A single spam wave can flood a channel with tens of messages in a few minutes, which quickly trains your team to ignore the notification channel entirely.
Create a free MyFormConnect form endpoint and skip building your own backend.
Start Free TrialNo credit card required · 5-minute setup