Setting up a form
Add a standard HTML form to any page on your static site.
Basic form
<form action="/thank-you" method="POST">
<input type="hidden" name="seal-form" value="contact-form">
<input type="text" name="name" placeholder="Your name">
<input type="email" name="email" placeholder="Your email">
<textarea name="message" placeholder="Your message"></textarea>
<button type="submit">Send</button>
</form>
Important
- The
seal-formhidden field is required. Its value identifies the form (e.g.contact-form,newsletter-signup). Submissions are grouped by this name in your dashboard. - The
actionattribute sets where the visitor is redirected after submitting. It can be any page on your site. - Field
nameattributes become the keys for the submitted data.
Naming
Form names are automatically derived from the seal-form value. For example, contact-form becomes "Contact form" in the dashboard. You can rename forms later.
Field types
Seal Static automatically detects field types based on field names. See Field types for the full list of detected patterns.