Skip to content
← cd ../blog

technical

Building FuelForms, a form backend for our client sites

Joshua Mitchener

· 3 min read

At Fuelviews we build websites for contractors and other service businesses. Almost every one of those sites has a contact form, and the form has to send its data somewhere. We used a third-party form service for that. Contact forms also attract a lot of spam.

In December 2023 I started FuelForms to replace that service. It is a Laravel app with a Filament admin panel, and the contact forms on our client sites post to it.

How a form connects

A FuelForms form is a plain HTML form. Its action points at a URL that ends in a random 20-character ID, like /api/f/k3v9q.... The client site needs no plugin and no JavaScript. If the site can render a <form>, it can use FuelForms. Each field has to hold a single value, so a checkbox group named services[] is rejected.

When a post comes in, the app looks up the form by that ID. If the post includes an email address, the app checks its format and makes sure the domain has DNS records. The email gets its own column. The rest of the fields are stored together as JSON, so a roofing quote form and a careers form can have completely different fields without a database change.

In the admin panel, the data is organized in three levels:

  • Teams group the projects, forms and submissions for each client.
  • Projects are the client websites, each with a name, a domain, a time zone and a logo.
  • Forms belong to a project. Each one has its own notification emails, an optional webhook URL and its spam settings.

Submissions show up in a table that you can filter by spam status and export to CSV.

Spam

Each submission goes through a set of spam checks:

  • A hidden honeypot field. A filled-in value marks the submission as spam.
  • A shared list of spam keywords.
  • Fields that start with a link or contain HTML, and posts where every field is empty.
  • A shared list of blocked email addresses and domains. When some of the checks catch a submission, its address goes on this list automatically, and from the admin panel we can block a whole domain with one click.
  • Banned words and phone numbers set on the form or its project.

A submission that fails a check is still saved. It is marked as spam and gets no notification email or webhook, so we can look at it later and fix a false positive.

Notifications

A clean submission can go out three ways:

  • Email to the addresses set on the form.
  • Webhook, a JSON post with the email, the fields and the submission time in the project's time zone. A client can use it to send leads into a CRM.
  • Slack, added in March 2025. Clean submissions go to one channel and spam goes to another, so we can scan both.

How it has changed

  • January 2024: first version on cPanel, with email notifications and webhooks.
  • March 2024: IP addresses on submissions and a per-form switch for the keyword filter.
  • June 2024: a scheduled check that emails us when the queue backs up.
  • August 2024: CSV export.
  • November 2024: moved to Laravel Forge, with Horizon for the queues and S3 for images.
  • March 2025: Slack notifications, Slack alerts for the queue check, and bulk tools to clear out spam and duplicate submissions.
  • April 2025: moved from MySQL to PostgreSQL.
  • January 2026: Laravel Nightwatch for monitoring.
  • September 2026: Danny added banned words and banned phone numbers that can be set per project or per form.

Stack

Laravel, Filament, Livewire, PostgreSQL and Horizon on Redis. It runs on a Forge server.