Signup forms
A signup form subscribes visitors to one or more lists. Kula hosts it on your own tracking domain, sends the confirmation email and protects it from bots. For a full page, see landing pages.
link.acme.com.Create a form
Open Grow › Forms › New form, start from a template, then lay the form out in the editor. Settings holds:
| Setting | What it does |
|---|---|
| Name | For you only, to find the form in the dashboard |
| Lists | The lists the visitor joins. One confirmation email covers all of them |
| Double opt-in | On by default: the visitor confirms by email before being subscribed |
| Confirmation email subject | Subject of that email, in the language of your space. Default: "Confirm your subscription to" and the list name, or "Confirm your subscription" with several lists |
| Title, Description | Shown above the fields on the hosted page and in the script version |
| Button label | Default: "Subscribe" |
| Success message | Shown after the visitor submits |
| Redirect URL | Optional: send the visitor to your own thank-you page instead |
| Confirmation redirect URL | Optional, with double opt-in, and without an incentive: where the confirmation link leads, and where a visitor who needs no confirmation goes right after submitting. Without it, the redirect URL |
| Incentive | A file or a link delivered by email. Incentive |
Keep double opt-in on: it keeps typos, fake addresses and bots out of your list. Double opt-in.
A new form is a draft until you click Publish: a draft answers 404. Publish.
Fields
The form block of the editor sets the fields, in the order you choose, with a label, a placeholder and a required setting for each:
| Field | Notes |
|---|---|
| Always asked, required | |
| First name, Last name | Each hidden, optional or required |
| Attributes | Up to 10 contact attributes: text, number, date, checkbox or choice list (1 to 30 choices). The key is lowercase letters, digits and underscores, up to 50 characters |
| Lists | The visitor checks the lists to join, among the public lists of the form. Private lists are always joined |
The button has a label, a color, a radius and a full-width setting. The line under it defaults to "We respect your privacy. Unsubscribe at any time." Fields are stacked, or the email and the button share one line.
Hidden fields
Up to 5 attributes with a fixed value, set on every signup: lead_source = webinar-nov. In Settings › Advanced.
Display formats
By default the form shows inline, where the script tag stands. On Growth, Settings › Advanced offers three more formats, drawn by the script in a Shadow DOM so your site's CSS can't break it:
| Format | Where | Triggers |
|---|---|---|
| Inline | Where the script tag is, or in #kula-form-<form-id> | Always |
| Window (modal) | Centered, over a dimmed page | Delay, exit intent (computers), scroll percentage, click on an element with data-kula-form="<form-id>" |
| Slide-in | Bottom left or bottom right corner | Delay, scroll percentage |
| Bar | Top or bottom of the page | Delay |
- Frequency: after a visitor closes it, the format stays away for N days (default 7). After a signup, it never comes back on that browser. The script keeps this choice in
localStorage: no cookie, no identifier. - Mobile: a window becomes full screen, a slide-in a bottom bar, and there is no exit intent.
- Outside Growth, the format is saved but the form shows inline.
- The script sends the page URL, the referrer and the
utm_*parameters with the form.
Add it to your site
The Embed panel of the form gives its URL and an HTML snippet.
Link to the hosted page
The form has its own page at:
https://link.acme.com/f/<form-id>
Share it in your social bio, a QR code or a button. Click Copy the URL or Open the page.
Paste the HTML form
Paste the snippet from the dashboard in your page and style it with your own CSS:
<form method="post" action="https://link.acme.com/f/<form-id>">
<input type="email" name="email" placeholder="you@example.com" required>
<input type="text" name="first_name" placeholder="First name">
<!-- Leave this field hidden and empty: it catches bots -->
<input type="text" name="website" tabindex="-1" autocomplete="off" aria-hidden="true" style="position:absolute;left:-9999px">
<button type="submit">Subscribe</button>
</form>
After submitting, the visitor sees One moment on your tracking domain for about a second while Kula checks they are not a robot, then the success message or your redirect URL. A bot that does not run JavaScript stops there. Nothing to add to your form.
website field. Bots fill every field they find: a submission with website filled is answered as a success and silently dropped.Load it with a script
The script draws the form, with your title, description and brand color, and submits it without leaving the page:
<script src="https://link.acme.com/f/<form-id>/embed.js"></script>
The form appears where the script tag stands. To place it elsewhere, add an empty element with the id kula-form-<form-id> and the script fills it (mailler-form-<form-id> still works). For a window, slide-in or bar, the same script tag is enough.
Submit from your own code
You can also post to the form from JavaScript, as JSON or form data, with the fields email, first_name and website (empty). With Accept: application/json, the answer is:
{ "ok": true, "pending": true, "message": "Thanks! Check your inbox to confirm." }
pending is true when the visitor still has to confirm by email. To create contacts from your backend, use the contacts API instead.
Posts from your own code skip the bot check. If bots get through, Kula pauses the signups for a few hours and answers 429: Bot signups.
What happens on submit
- Kula checks the address. An invalid or disposable one (
mailinator.com,yopmail.com…) gets an error message. - The contact is created, or updated if it already exists, with the source Signup form.
- With double opt-in, the visitor receives the confirmation email, which names each list with its description, and the subscription stays Pending until they click. Without it, they are subscribed right away.
- A confirmed subscription starts the flows triggered by the list, such as your welcome sequence.
- Once the signup takes effect (confirmation click, or the submission without double opt-in), Kula records the event
kula.form_joinedon the contact, which starts the flows triggered by Someone joins a form. Events. - With an incentive, the visitor receives the document by email.
The form is kept on each subscription it creates, and on the contact it created (their source form).
Special cases:
- If the space confirms an address once (Double opt-in), someone already subscribed to another list is subscribed right away, even with double opt-in.
- Someone who unsubscribed and fills the form again always confirms by email, even with double opt-in off.
- An address that bounced or complained gets the same success message as anyone else, but nothing is stored. The form never reveals what Kula knows about an address.
- Each visitor can submit at most 10 times per minute.
- When bots fill the form with other people's addresses, Kula pauses the signups for a few hours: visitors are asked to try again later. Bot signups.
- A subscription not confirmed within 30 days is removed, and the contact with it if nothing else is attached to it. Double opt-in.