Forms on your website

Put an Oalo form on any website with a copy-paste HTML snippet. Each submission becomes a contact and events that can start a workflow.

Any widget you build in Oalo can live on any website: your own site, a Webflow or WordPress page, a static landing page. You copy a small piece of HTML, paste it into the page, and visitors fill it in. Each submission lands in your Base as a contact plus events, so a workflow can answer the person right away.

Put a form on a site

  1. Open Widgets, pick the widget, and find Use on your website.
  2. Choose the form's language (English or Spanish). It sets the button and the messages the visitor sees.
  3. Click Copy HTML and paste it into your page where the form should appear.

The HTML is a plain form with your widget's fields, labels and required marks. It posts straight to your Base's public address, so it works without JavaScript. After sending, the visitor sees a short thank-you page, or lands on your own thank-you page if you set one (see below).

The last line of the snippet loads a small script from your Base. With it, the form sends in the background, shows "Thanks" or an error right under the button, and keeps the button disabled while it sends. If your Base is restarting (it takes 2 to 3 minutes when it changes size), the script keeps retrying for about 3 minutes, so a visitor's message is not lost. You can remove that line if you prefer the plain form.

Style the form with your site's own CSS. The snippet uses the classes oalo-form and oalo-field. The only styling it adds hides the spam-trap field, and the script shows errors in red.

A widget with a custom component shows only its plain fields on a website. To show the component itself, share the widget's hosted link instead.

What happens when someone sends it

Every submission:

  • is checked against the widget's fields (unknown fields are dropped, required ones must be filled),
  • creates or updates a contact when the form has an email or phone field,
  • fires widget.submitted, plus lead.captured whenever it captures a contact from an email or phone field (a new contact or a returning one), plus review.submitted when a rating field is filled,
  • fires form.submitted only when the widget's events list it. A form made with the create_form tool lists it unless you pass other events; a widget made another way may not, so check its events before you trigger on it.

Those events can start a workflow. widget.submitted always fires, so a trigger on it (or the widget trigger that fires for one widget only) is the safe choice; form.submitted works for widgets that list it. See Starting, chaining and switching flows and loops for the triggers, and Capture website leads and report them to Meta for a complete lead funnel.

Answering the person

A workflow can reply as soon as the form arrives, for example with an AI step that writes a personal answer and an email step that sends it.

  • Email works: the form gave you their address.
  • WhatsApp needs an approved message template, because the person has not written to you first. A free-form WhatsApp message is only allowed inside a conversation they started.
  • SMS needs your own Twilio or Telnyx number turned on in Channels > SMS, and in the US, registered with the carriers. See sms.md.

Protections

Every public form is protected, with no setup:

  • Spam trap. The snippet carries a hidden field people never see. When a bot fills it, the bot gets a normal "thanks", and nothing is saved and nothing fires.
  • Size limits. At most 50 fields, 4 KB per answer and 32 KB in all. Larger submissions are refused with a clear message.
  • Per-visitor limit. One visitor can send a form 5 times a minute and 30 times an hour. Past the per-minute limit the script waits and tries again for them; past the hourly limit, or the daily one, they see the message.
  • Daily limit. Each form takes up to 500 submissions a day by default. Past the limit, new submissions are refused until midnight UTC, and your team gets one notification that day (the Form daily limit setting under notifications). Change the number under Daily limit in Use on your website, from 1 to 100,000. The section also shows today's count and how many were refused.

Allowed websites

By default any website can send your form. To allow only your sites, add them under Allowed websites, for example https://example.com, up to 20. If your site answers on both example.com and www.example.com, add both.

Once the list has a website:

  • A browser on any other website is refused.
  • A request that comes from no website at all (a server, a script) still works, and still counts toward the limits. The list stops other websites from using your form in a visitor's browser. It is not a password.
  • Your Base's own pages, such as the widget's hosted link, and your Base's apps at their Oalo address are always allowed. An app on its own domain goes on the list like any other website.
  • A page that hides where it comes from is refused too. With some privacy settings, keeping the script line in the snippet fixes it, since the script always says which site it is on. A form inside a sandboxed frame can't be helped that way: put it on the page itself.

Leave the list empty to accept any website again.

Your own thank-you page

Set Thank-you page to a full address such as https://example.com/thanks. After sending, the visitor goes there, with or without the script. Leave it empty for the built-in thank-you message.

Rotate the address

If spam keeps coming, or the address got shared where it shouldn't, click Rotate address, then click again within 3 seconds to confirm. The form gets a new public address and the old one stops working at once: anyone using it sees that the form has moved.

After rotating, copy the snippet again and update every website and link that used the old address. Flows and bots that use the widget keep working, and personal links you already sent to contacts keep working too. Only an admin can rotate an address.

Related
Start with Oalo

Your own Base, with every feature, from $99 a month.

get started