🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Company Lookup Setup Guide

Updated 8 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Step 1: install and activate the licence
  4. Choosing a registry and adding your key
  5. The other settings
  6. Step 2: add the Company Lookup field
  7. Step 3: choose which fields are filled
  8. Searching by name or by number
  9. How the search and fill work
  10. Keeping the lookups safe and tidy
  11. Good uses
  12. Frequently asked questions

Video walkthrough

Gravity Forms Company Lookup Add-On Setup Guide: Registry Keys & Field Mapping (WordPress Side)
Video setup guide: Gravity Forms Company Lookup Watch on YouTube

The Gravity Forms Company Lookup Premium Add-on lets a visitor pick their company instead of typing every detail by hand. It adds a Company Lookup field to the Gravity Forms editor: the visitor types a company name or registration number, presses Search, chooses the right match, and the add-on fills the fields you choose with the official company name, registration number, registered address, status, incorporation date, company type and officers. The data comes from a company registry you pick — UK Companies House, OpenCorporates or French SIRENE — using your own account, read through your own site with caching, so the browser never calls a registry directly and your key stays on your server.

It is a companion to the GravityExtra Postcode Lookup add-on. Postcode Lookup fills a postal address from a postcode; Company Lookup fills a company’s registry details from its name or registration number. Use one, the other, or both on the same form.

What you need

  • WordPress 5.8 or newer, PHP 7.4 or newer and Gravity Forms 2.5 or newer. Tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.
  • Your GravityExtra licence key. Without an active licence the lookups are off and the search returns nothing.
  • An account and API key for at least one registry: a free UK Companies House API key, an OpenCorporates API token, or a French SIRENE (INSEE) token. You only need a key for the registries you use.
  • Your site must be able to make an outgoing HTTPS request to the registry you choose. The add-on only ever contacts that registry’s own host.

Step 1: install and activate the licence

  1. Upload and activate the add-on in Plugins.
  2. Open Forms → Settings → Company Lookup and activate your licence key.
  3. Review the Company registries section below the licence box, where you choose the default registry and paste your keys.
The Company Lookup settings screen in Gravity Forms: the licence box, the default provider, the UK Companies House, OpenCorporates and French SIRENE 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 for the lookups.

Choosing a registry and adding your key

Pick a Default provider and paste the matching key. You can add more than one key and switch between registries per field later.

  • UK Companies House covers companies registered in the United Kingdom. Create a free API key in the Companies House developer hub and paste it here. The search matches by company name or company number, and the record includes the registered office address, the company status, the date of incorporation, the company type and the current officers.
  • OpenCorporates covers companies across many jurisdictions worldwide. Paste your OpenCorporates API token. Each match carries its jurisdiction code, so you can tell a Delaware company from a French one at a glance.
  • French SIRENE (INSEE) covers French businesses by SIREN and SIRET. Paste your INSEE token. The search matches the legal name of the unit, and a match carries the SIRET, the registered address, the administrative status and the legal category.

Your key is encrypted before it is stored, so a copy of the database alone cannot read it, and it is only ever sent to that registry’s own host. Leave a key box empty to keep the key already stored; tick the matching Remove box to clear a stored key when you save.

The other settings

  • Cache lookups for (hours): how long a search or a fetched company record is kept before the registry is asked again, from 1 to 168. Company data changes slowly, so 12 to 24 hours keeps forms fast and your lookup count low.
  • Lookups per minute per visitor: a gentle guard so one browser cannot flood the lookups, from 5 to 600. Set it a little above how many searches a real visitor makes.
  • Check the connection: pick a provider and press the button to run a tiny test search with the saved key. It confirms the key works and sends nothing else. Save first if you have just changed a key.

Step 2: add the Company Lookup field

Open a form and, from the Advanced Fields group in the editor, add the Company Lookup field. On the published form it shows a search box and a Search button. The visitor types a company name or registration number, presses Search, and a short list of matches appears; choosing one fills the mapped fields. The chosen company is stored on the entry as a single line, for example “ACME LTD (01234567)”.

Each Company Lookup field has a Company registry setting in the editor. Leave it on “Use the site default” to follow the default provider from the settings, or pick a registry for this field only. That lets one form search UK Companies House while another searches OpenCorporates, with no extra setup.

The Gravity Forms form editor with a Company Lookup field added from the Advanced Fields group, plus plain text fields marked with the gfcl CSS classes to be filled
The Company Lookup field in the editor, with plain fields marked by CSS class for the add-on to fill.

Step 3: choose which fields are filled

The add-on fills any field in the same form that carries a matching CSS class. Add the fields you want — ordinary Single Line Text fields work well — and give each one a CSS class in Appearance → Custom CSS Class. Use the class for the detail you want in that field:

  • gfcl-company_name — the registered company name
  • gfcl-company_number — the registration number (company number or SIRET)
  • gfcl-address — the registered office address on one line
  • gfcl-status — the company status, such as active or dissolved
  • gfcl-incorporation_date — the date the company was incorporated
  • gfcl-company_type — the company type, such as a private limited company
  • gfcl-officers — the current officers (where the registry provides them)
  • gfcl-jurisdiction — the jurisdiction the company is registered in

You only need the classes for the details you care about; leave the rest out. 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 all keep working. The chosen company and the filled fields are saved on the entry like any other answer.

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

Searching by name or by number

The search box accepts either a company name or a registration number, so visitors can use whatever they have to hand. Type a name and the registry returns the companies whose names match, newest and most relevant first; type a company number, SIRET or SIREN and the registry returns that exact company. Each match in the list shows the company name with its number, status and jurisdiction beneath, so the visitor can tell apart two companies with similar names before picking one. If nothing matches, the add-on says so plainly rather than leaving an empty list, and the visitor can refine the name or try the number instead. Because the match the visitor picks is the one fetched in full, the company that ends up on your form is the exact record from the registry, not a guess from a partial name.

How the search and fill work

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. Because the request runs on your server, the registry is never called from the visitor’s browser, your key is never exposed, and the only 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.

Keeping the lookups safe and tidy

Several guards keep the lookups well behaved. The licence must be active or the lookups stay off. 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 company name or number the visitor types is cleaned before it is used, and the reference of a chosen match is checked against the shape that registry expects, so a request is never built from unexpected input. The registered address, officer names and other text are trimmed and shortened before they reach your form.

Good uses

  • A business account or trade application that captures the exact registered name, number and address.
  • A supplier or vendor onboarding form that records the company status and incorporation date for your files.
  • A know-your-customer or due-diligence step that lists the current officers alongside the company details.
  • A quote or contract form where the registered address should match the registry exactly, paired with Postcode Lookup for the delivery address.

Frequently asked questions

Do I need an account with a registry? Yes, for the registry you use. A UK Companies House key is free; OpenCorporates and SIRENE issue their own tokens. Company Lookup uses your account, so you keep your own limits and logs.

Can one form search a different registry from another? Yes. Set a default provider in the settings and, on any Company Lookup field, choose a registry for that field only.

Is my key safe? The key is encrypted before it is stored and is only ever sent to that registry’s own host, from your server, never from the browser.

What is stored on the entry? The chosen company line, plus whatever you mapped into fields with the gfcl classes. Those are saved like any other Gravity Forms answer and appear in the entry, notifications and exports.

With the Company Lookup add-on, your forms capture official company details that match the registry, your visitors pick instead of type, and your own account stays in control. Add it to any Gravity Forms form in a few minutes.

Still need help?

Our support team answers tickets every day, usually within a few hours.

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