Contents: Plain HTML
Plain HTML
Any HTML form can send to Formiz. Point the action to our endpoint and add your access key as a hidden field.
<form action="https://api.formiz.app/submit" method="POST"> <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY"> <input type="hidden" name="subject" value="New message from my site"> <input type="checkbox" name="_honey" style="display:none" tabindex="-1"> <input name="name" required> <input name="email" type="email" required> <textarea name="message" required></textarea> <button type="submit">Send</button> </form>
Field names
Every input with a name attribute is delivered. Use clear names such as name, email, phone and message; they become the labels in your notifications.
After submitting
By default visitors see our hosted thank-you page. Add a hidden redirect field to send them to your own page instead.
<input type="hidden" name="redirect" value="https://example.com/thanks">
File uploads
Add enctype="multipart/form-data" to the form and use an input of type file. File uploads are included free during early access.
<form action="https://api.formiz.app/submit" method="POST" enctype="multipart/form-data"> <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY"> <input name="name" required> <input name="email" type="email" required> <input type="file" name="attachment"> <button type="submit">Send</button> </form>