HTML form
The simplest integration needs no JavaScript: set the form's action to your endpoint and method to POST.
index.html
<form action="https://api.formtura.app/v1/submit/YOUR_FORM_ID" method="POST">
<label>
Name
<input type="text" name="name" required />
</label>
<label>
Email
<input type="email" name="email" required />
</label>
<label>
Message
<textarea name="message" required></textarea>
</label>
<!-- Spam trap: hidden from people, filled in by bots. Keep it empty. -->
<input type="text" name="_gotcha" tabindex="-1" autocomplete="off"
style="position:absolute;left:-9999px" aria-hidden="true" />
<button type="submit">Send</button>
</form>What happens
- The browser posts the fields and shows a small thank-you page (or redirects to the URL you set in the form's settings).
- Each
nameattribute becomes a field of the submission. Checkboxes and multi-selects arrive as lists. - The hidden
_gotchainput is a spam trap; real visitors never fill it. Names starting with_are reserved and not stored.
Want to stay on the page instead? Use the fetch example.