Add a contact form to a Webflow site without a backend

Webflow's form element normally sends submissions to Webflow. Webflow's own Help Center says that if you export your site's code and still want the built-in form element, you adjust the form's settings to connect to a third-party form service. Lamofel is one: you point the Webflow form at a Lamofel endpoint, and the browser posts the form straight to Lamofel. There is no server code of your own and no API key in the page.

  1. Claim an endpoint first, because Webflow asks for the address when you set the form up. Open the free contact form generator at lamofel.com/tools, pick the fields (name, email and message are enough), enter the email address where submissions should arrive and press "Send messages to my email". Your account, the form and the live endpoint are created right away. The claim result shows your form HTML; the part you need is the address in its form action, which looks like https://lamofel.com/f/ followed by your endpoint code. Delivery starts after you confirm that address from the email Lamofel sends you; submissions sent before you confirm are stored but not emailed. The confirmation link works for 7 days (see lamofel.com/privacy). Then set an allowed domain: posts whose browser Origin or Referer names another site are refused. It is a filter, not proof of the sender -- a script can send any header.
  2. In the Webflow Designer, add a Form Block and give each field the name Lamofel expects. Webflow's field setting "Name" identifies the field in form submissions, so set the name field to name, the email field to email and the message field to message (the generator's field names). Do not add Webflow's File upload element: Lamofel does not accept file uploads (lamofel.com/privacy).
  3. Point the form at Lamofel. Select the form and open the Settings panel. If Webflow or Email notifications are listed under Send to, click the delete icon next to each: Webflow says they cannot be used together with a custom action. Click the add icon next to Send to, choose Custom action, enter your Lamofel address as the URL and choose POST as the method.
  4. Add the spam trap. If you can use Webflow's Code Embed element (Webflow says you need a Core, Growth, Agency or Freelancer Workspace, or a site with an active Site plan), drag a Code Embed into the Form Block and paste this one line:
<input type="text" name="_gotcha" tabindex="-1" autocomplete="off" hidden>

Generate a free form

No card needed. 100 messages a month free.

Keep this hidden _gotcha field: it is the spam trap. A filled-in _gotcha field marks the post as spam. Without a Code Embed the form still works, but it has no spam trap. Webflow notes that custom code can conflict with Webflow's own functionality and that its support team cannot troubleshoot it.

  1. Publish the site. If you host the exported code somewhere else, export the site code after you have published the change, and upload it to your host.
  2. Send a test submission from the live page and check that it arrives in your confirmed inbox.

What changes when you use a custom action

Limits and plans

Generate a free form ยท See plans · Claim a free endpoint