Add it to the page

Put the native form in a Svelte component and use it on a static or server-rendered page. SvelteKit’s use:enhance targets its own server actions. Use a fetch handler if you want inline feedback for the external endpoint.

Connect your form

Replace the example origin and access key with the values from your form’s setup screen. Send a test message from each site you publish and check the submission in your inbox.

SVELTE
<form action="https://api.bitebrake.com/api/submit" method="post">
  <input type="hidden" name="access_key" value="YOUR_FORM_ACCESS_KEY">
  <label>Name <input name="name" autocomplete="name" required></label>
  <label>Email <input name="email" type="email" autocomplete="email" required></label>
  <label>Message <textarea name="message" rows="5" maxlength="4000" required></textarea></label>
  <div hidden><label>Leave empty <input name="botcheck" tabindex="-1" autocomplete="off"></label></div>
  <button type="submit">Send message</button>
</form>

Test the deployment

Submit a test message from the deployed page, check your form inbox, and verify the recipient can reply.

Related resources

Create a formBrowse platforms