POST.
Switch the form on
In the list’s Settings tab, the Subscription form section:boolean
required
While the box is unticked, the form’s address answers “not found”.
one per line
Only forms served from these domains (and their subdomains) are accepted,
going by the
Origin or Referer header. Leave it empty to accept any
site.URL
Where to send the person after the form is submitted: subscribed,
waiting for confirmation (double opt-in) and after unsubscribing.
Without a redirect, Lekalao shows its own thank-you page in your
brand colours.
The form, ready to use
Copy the block shown in the settings. It looks like this:The fields it takes
What happens next
- A list without double opt-in: the person is subscribed; automations for “someone subscribes” start; the welcome e-mail goes out when it is switched on.
- A list with double opt-in: they receive the confirmation e-mail and see the “Check your inbox” page.
- An address already subscribed: the first name, last name and language you send update their record, tags are added, and the success page appears.
- Someone who had unsubscribed: filling in the form counts as subscribing again.
- A blocked address (on the suppression list): the success page appears all the same; Lekalao never reveals that an address is blocked.
Sending it with JavaScript
With theAccept: application/json header, the form answers in JSON instead of redirecting. It takes requests from other sites (CORS); the allowed-domain check is still done by Lekalao:
More, with React and server-side examples, in Forms.