🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 26, 2026

How to Add a Company Lookup to Gravity Forms (Companies House, OpenCorporates, SIRENE)

GravityExtra
How to Add a Company Lookup to Gravity Forms (Companies House, OpenCorporates, SIRENE)

Ask a visitor to type their company name into a form and you will get “Acme Ltd”, “ACME LIMITED”, “acme” and a stray trading name in the same column by lunchtime, with the registration number mistyped half the time. For a business account application, a supplier onboarding form, a trade credit request or a due-diligence step, the company is the most important thing on the form, and it is the thing people get wrong most often. The fix is to let them search the official register and pick their company, rather than type it from memory. This guide shows how to add a company lookup to Gravity Forms with the Gravity Forms Company Lookup Premium Add-on, so a visitor searches by name or registration number, chooses the right match, and the add-on fills the registered name, number, address, status, incorporation date, type and officers for you. The full Company Lookup setup guide covers every setting in detail.

Why look companies up instead of asking people to type them

A registered company has one exact name, one number and one registered address, and your records are only useful when they match the register. When people type those details, you get spelling variants, old trading names, transposed digits in the company number and addresses that are close but not quite right. That costs you later: a trade account opened against the wrong entity, an invoice sent to a former address, a compliance check that cannot be reconciled. Looking the company up at the point of entry removes the guesswork. The visitor finds their company once, picks it, and every field is filled from the registry in one step. They type less, you get clean data, and the two always agree.

Company Lookup is a companion to the GravityExtra Postcode Lookup add-on. Postcode Lookup turns a postcode into a postal address; Company Lookup turns a company name or number into the company’s registry details. On a trade or account form you can use both: Company Lookup for the registered company, Postcode Lookup for the delivery or site address.

What the add-on does

The add-on adds one field to the Gravity Forms editor: a Company Lookup field. On the published form it is a search box with a Search button. The visitor types a company name or a registration number, presses Search, and a short list of matching companies appears. Choosing one fills the fields you have marked, and stores the chosen company on the entry. The data comes from a company registry you pick, using your own account:

  • UK Companies House for companies registered in the United Kingdom, with a free developer API key.
  • OpenCorporates for companies across many jurisdictions worldwide, with an API token.
  • French SIRENE (INSEE) for French businesses by SIREN and SIRET, with an INSEE token.

One switch sets the registry for the whole site, and any individual lookup field can override it, so one form can search Companies House while another searches OpenCorporates. Every search and fetch runs through your own server with your key, which is encrypted on your site and only ever sent to that registry’s own host. The browser never calls a registry directly.

Step 1: activate the licence and add your key

Install and activate the add-on, then open Forms → Settings → Company Lookup and activate your GravityExtra licence key. Below the licence box is the Company registries section. Choose a default provider and paste the matching API key. You can add keys for more than one registry and choose between them per field.

The Company Lookup settings screen in Gravity Forms: the licence box, the default provider, the three registry API key boxes, the cache hours and the lookups-per-minute rate guard
The settings: the default provider, the three key boxes and the cache and rate guard.

Each key is encrypted before it is stored, so a copy of the database alone cannot read it. Leave a key box empty to keep the stored key, or tick the matching Remove box to clear it. The Cache lookups for (hours) option sets how long a search or a fetched record is kept before the registry is asked again, from one hour to a week; twelve to twenty-four hours suits most sites. The Lookups per minute per visitor option is a gentle guard so one browser cannot flood the lookups. The Check the connection button runs a tiny test search with the saved key and confirms it works, sending nothing else.

Step 2: add the Company Lookup field

Open a form and add the Company Lookup field from the Advanced Fields group. In the editor the field has a Company registry setting: leave it on “Use the site default” to follow the settings, or pick a registry for this field only. Add the fields you want filled next to it — ordinary Single Line Text fields are ideal.

The Gravity Forms editor with a Company Lookup field, plus text fields marked with the gfcl CSS classes to be filled
The Company Lookup field in the editor, with plain fields ready to be filled by CSS class.

Step 3: map the fields with CSS classes

The add-on fills any field in the same form that carries a matching CSS class. Give each field a class in Appearance → Custom CSS Class, using the class for the detail you want in it: gfcl-company_name for the registered name, gfcl-company_number for the registration number, gfcl-address for the registered address, gfcl-status for the company status, gfcl-incorporation_date for the incorporation date, gfcl-company_type for the company type, gfcl-officers for the current officers, and gfcl-jurisdiction for the jurisdiction. You only need the classes for the details you care about. A field can be a Single Line Text field, a drop down or a hidden field; the add-on sets the value and leaves everything else to Gravity Forms, so required rules, conditional logic and calculations keep working.

Step 4: try it on the published form

Open the form, type a company name or number in the search box and press Search. A list of matches appears, each showing the name with its number, status and jurisdiction so you can tell similar companies apart. Pick the right one and the mapped fields fill in a moment later. The chosen company is stored on the entry as a single line, for example “ACME LTD (01234567)”.

The published form with a company search box and a list of matches, with the company name, number, address, status and officers filled in after a match is chosen
The published form after a match is chosen: the company details are filled in.

How it works behind the scenes

When the visitor searches, the browser asks your own site, over admin-ajax, to search the chosen registry. Your site calls the registry with your key, reads the matches and returns a short list. When the visitor picks a match, your site fetches that company’s full record — and, for Companies House, its officers — and fills the mapped fields. Running the request on your server keeps your key off the page and means the only outside host the add-on contacts is the registry’s own. Each search and each fetched record is cached for the period you set, so a repeated search or a popular company does not call the registry again, which keeps your forms fast and your lookup count low.

Keeping it safe

The lookups are off until your licence is active. Every request carries a one-time page token, so a lookup cannot be triggered from another site. A per-visitor rate guard stops one browser from running hundreds of searches in a minute. The name or number the visitor types is cleaned before it is used, and the reference of a chosen match is checked against the shape the registry expects, so no request is built from unexpected input. The registered address, officer names and other text are trimmed and shortened before they reach your form. Your key is encrypted at rest and sent only to the registry you chose.

Searching by name or by number

The same search box takes a company name or a registration number, so visitors use whatever they have. Type a name and the registry returns the companies whose names match, most relevant first; type a company number, a SIRET or a SIREN and the registry returns that exact company. Each row in the list shows the company name with its number, status and jurisdiction beneath it, which matters when two firms share a similar name or when an old trading name and the registered name differ by a word. The visitor reads the number and the status, picks the right entity, and that is the record fetched in full. If nothing matches, the add-on says so clearly instead of leaving a blank list, and the visitor can adjust the name or switch to the number. Because the match the visitor chooses is the one that is fetched and stored, the company on your form is always a real record from the register, never a half-typed approximation that happens to look right.

Common questions

Do you need an account with a registry? Yes, for the registry you use; a UK Companies House key is free, and OpenCorporates and SIRENE issue their own tokens. Can one form search a different registry from another? Yes, through the per-field provider setting. What is stored on the entry? The chosen company line plus whatever you mapped by CSS class, saved like any other Gravity Forms answer and included in notifications and exports.

Where it fits

A company lookup earns its place anywhere the company has to be exact: business account and trade applications, supplier and vendor onboarding, know-your-customer and due-diligence steps, credit requests, and quotes or contracts where the registered name and address must match the register. Pair it with Postcode Lookup when you also need a tidy delivery or site address. In every case the visitor searches once and picks, you store the registry’s own record, and the data on your form and the data on the register say the same thing.

Add the Gravity Forms Company Lookup Premium Add-on to any form, choose your registry, map a few fields, and your visitors will be picking their company from the official register in minutes — with your own account in control the whole way.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr