How can I identify companies without having to add a company field to the form?

So, you want to know how to spot which company a lead is coming from without making them fill in a “company” field in your Mautic form? It’s a classic case of wanting to keep forms clean and simple but still get that juicy segmentation data. Here’s the scoop.

The question came up recently on the Mautic forums: user has one form (name and email only), placing it on two different websites — let’s call them Website A and Website B. They want Mautic to automatically tag submissions from Website A as belonging to Company A, and submissions from Website B as Company B, without cluttering the form.

Good news—it’s totally doable, and without any complicated hacking. The trick is to use hidden fields in your form or leverage URL parameters combined with Mautic’s form processing. Here’s how it breaks down:

  • Hidden fields: You keep your form simple (no visible company field), but add a hidden field for “company” in the form builder. When embedding this form on Website A, you set that hidden field’s value to “Company A”. On Website B, set it to “Company B”. When the form posts, Mautic automatically grabs that hidden value and attaches it to the contact profile.
  • URL parameters: Another slick way is to add ?company=CompanyA (or CompanyB) to the URL where the form lives. Mautic can map query parameters to contact fields using its form settings or through some custom campaign triggers. This way, your simple form picks up the company value invisibly.

The advantage of hidden fields is straightforward setup in the form itself. URL parameters add flexibility if you want to dynamically assign companies or other tags without multiple form versions.

In the forum thread, no official GitHub issues popped up about this—meaning it’s not a bug or missing feature, just a matter of creative form setup. Folks also chimed in that this approach keeps user friction low, improving UX without sacrificing data quality.

From a practical standpoint: if you want to keep your forms lean and your data rich, mastering hidden fields and URL parameters in Mautic forms is a must. Plus, managing separate forms for every company is needless overhead when a simple tweak does the trick.

If you’re running Mautic 6.0.5 on PHP 8.1 like our forum friend, this approach will work smoothly—no extra plugins or hacks needed.

Curious? Jump into the original Mautic forum discussion and see the tips rolling in. It’s a neat little hack that’ll save you time and keep your data sharp.

Share the Post: