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.
- 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.
- 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).
- 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.
- 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>
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.
- 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.
- 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
- Webflow says a custom action sends submissions directly to the external service and bypasses Webflow's built-in form handling entirely: submissions are not sent to or stored in Webflow. Your messages are in your Lamofel account instead.
- The form now works as an ordinary HTML form posting to Lamofel, so after sending, the visitor sees Lamofel's thanks page rather than a message inside your page.
- Webflow's own announcement of 24 April 2018 says forms stop working on exported sites unless they are connected to a third-party form service, so a Lamofel endpoint is what keeps an exported site's form working.
Limits and plans
- Submissions are stored for 30 days, then deleted.
- Free: 0 USD / month, 100 messages / month, with a "Powered by" footer on the thanks page.
- Starter: 5 USD / month or 50 USD / year, 2,000 messages / month.
- Pro: 9 USD / month or 90 USD / year, 5,000 messages / month.
- 30-day refund: ask within 30 days of a payment and we will ask our merchant of record to refund that payment in full. After a refund or cancellation your account returns to the Free plan and your forms keep working within the Free limits.
- Support is by email at support@lamofel.com, with a reply within 2 business days (India time, Monday to Friday).