Skip to content

Forms

Any HTML form on your site can send its messages to OneHostBox. You’ll find them in your site’s Forms inbox and, if you like, in your email.

  1. Open your site and go to Forms. Copy the site’s form address.
  2. Set it as your form’s action, with method="post".
  3. Deploy. Messages sent from your site appear in Forms.
<form action="YOUR-FORM-ADDRESS" method="post">
<input type="hidden" name="_form" value="Contact" />
<!-- Spam trap: leave it empty and hidden from people -->
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off" />
<label>Name <input name="name" required /></label>
<label>Email <input name="email" type="email" required /></label>
<label>Message <textarea name="message" required></textarea></label>
<button type="submit">Send</button>
</form>

Sites made with the AI builder are connected automatically when you publish.

Field What it does
_form Names the form, so you can tell several forms apart in the inbox.
_gotcha A spam trap. Messages with it filled in are dropped silently and don’t count toward your allowance.
_next A page on your site to show after sending, e.g. /thanks. Without it, visitors see a short “Thanks! Your message has been sent.” page.
email Becomes the reply-to address, so replying to the notification email answers the visitor.

Give every field a name; fields without one aren’t sent. A message can have up to 50 fields and 10,000 characters per field. File attachments aren’t supported.

To send with JavaScript instead of a page load, post the form with the header Accept: application/json and you’ll get a JSON reply.

  • Forms inbox: filter by form, mark as read, delete, or export to CSV.
  • Email: Email me each new message is on by default (Account settings). Everyone in the workspace who has it on and can see the site is notified.
Free trial Starter Pro Advanced
Messages a month 50 100 1,000 5,000

Allowances reset on the 1st (UTC). At the limit, the form tells visitors it isn’t accepting messages right now, and you get an email.