Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Address autocomplete not working: how to find and fix it

OPS-227Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Address autocomplete is the dropdown that suggests full addresses as someone types in a checkout, booking or lead form. It usually calls a third-party API such as Google Places, Mapbox, Loqate or Autocomplete from a postal provider. When that call fails, the dropdown simply never shows. The form often looks normal, so nobody notices.

Why it costs you leads or sales

Autocomplete saves typing, mainly on phones. Without it, people type long addresses, make typos and give up sooner. Worse, some forms fill the city, postcode or state only from the dropdown choice. If those fields stay empty or locked, validation fails and the form cannot be submitted at all. Typos also lead to failed deliveries and shipping or tax calculation errors.

Where a failing autocomplete breaks the funnel
  1. Visitor starts typing addressField accepts input
  2. Autocomplete API callKey, billing or referrer error
  3. Address fields fillCity, postcode stay empty
  4. Form submitsValidation fails or user leaves

The API call fails silently, so the later steps depend on how the form handles missing suggestions.

Form completion with and without working suggestionsExample numbers
Form completion with and without working suggestions (example)Autocomplete working: 62 %; Autocomplete failing: 48 %024486248Autocomplete workingAutocomplete failing%

Example: illustrative numbers only, showing how completion can drop when address fields must be typed in full.

How to check if your site has it

Test the autocomplete by hand
  1. Open the form in a private window

    Use a fresh window with no extensions so ad blockers do not interfere. Try desktop and a phone.

  2. Type a real address

    Type the first few characters of a street. A dropdown of suggestions should appear within a second.

  3. Open the browser console

    Press F12, open Console and Network. Look for messages such as RefererNotAllowedMapError, ApiNotActivatedMapError, InvalidKeyMapError, BillingNotEnabledMapError or OVER_QUERY_LIMIT.

  4. Check the request status

    In Network, filter for the provider domain (for example maps.googleapis.com). A 403, 400 or 429 response means the provider is rejecting the call.

  5. Check the provider dashboard

    In Google Cloud Console, open APIs and Services, then Credentials and Quotas, and check billing status and errors for the Places API.

Common error messages and what they mean
ErrorLikely causeFix
RefererNotAllowedMapErrorYour domain is not in the key's allowed referrersAdd the exact domain pattern to the key restrictions
ApiNotActivatedMapErrorPlaces API not enabled on the projectEnable Places API (or Places API New) in the library
BillingNotEnabledMapErrorBilling is off or the card failedFix the billing account link
InvalidKeyMapErrorKey typo, deleted or wrong keyReplace with the correct key
OVER_QUERY_LIMIT / 429Quota or rate limit reachedRaise the quota or cache and debounce requests

How to fix it

Fix by platform
  1. Find where the key is set

    Check your form plugin (Gravity Forms Google Places add-on, WooCommerce address plugins, Elementor forms) or theme settings for the API key field.

  2. Paste a valid key

    Use a key with the right API enabled, then save and clear any caching plugin cache.

Let the form work even if autocomplete failsjavascript
// Google Maps JS API calls this when the key is rejected
window.gm_authFailure = function () {
  document.querySelectorAll('[data-address-field]').forEach(function (el) {
    el.removeAttribute('readonly');
    el.removeAttribute('disabled');
  });
  console.warn('Address autocomplete unavailable, manual entry enabled');
};
General order of fixes
  1. Fix the key and billing

    Confirm the key exists, billing is active and the correct API is enabled.

  2. Correct the restrictions

    Add every live, www and non-www domain to the allowed referrers. Remember new domains and subdomains.

  3. Check quotas

    Raise the daily quota if needed, and use session tokens and a short typing delay so each lookup costs fewer requests.

  4. Check blockers

    If you use a Content Security Policy, allow the provider's domains in script-src and connect-src.

  5. Add a fallback

    Keep the fields editable, so a provider outage only removes the convenience.

A rejected API call leaves the dropdown empty

The visitor types, the provider returns an error and no suggestions appear.

How to confirm it's fixed

Confirmation checks
  • Suggestions appear on desktop and mobile in a private window
  • The console shows no MapError messages
  • Network requests to the provider return 200
  • Selecting a suggestion fills street, city, postcode and country
  • Typing an address by hand still submits the form
  • The provider dashboard shows requests with no new errors

How to prevent it happening again

Prevention
  • Set a billing alert and quota alert in the provider console
  • Keep keys in one documented place and note who owns the account
  • Use separate keys for staging and live, each with its own referrer list
  • Add new domains to referrer restrictions before launching them
  • Keep manual address entry available at all times
  • Re-test the form after theme, plugin or checkout changes
  • Review provider deprecation notices for the Places API

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It runs your real customer journey with a robot visitor on a schedule, checks each step and alerts you if a step fails, for example if a form cannot be completed because of a page error. It does not specifically test whether the address suggestions dropdown appears, and it does not read your provider's quota, billing or key settings.

Questions people ask

Why is my address autocomplete not working?

Most often the API provider is rejecting the request. Typical causes are an invalid or deleted key, billing disabled, a quota limit, the Places API not being enabled, or a referrer restriction that excludes your domain. Open the browser console to see the exact error.

Why does Google Places autocomplete show RefererNotAllowedMapError?

The API key has HTTP referrer restrictions and your site's URL does not match them. In Google Cloud Console, open Credentials, edit the key and add your domain pattern, such as https://www.example.com/*. Include non-www and any new subdomain.

How do I fix address autocomplete on checkout?

Check the key, billing and enabled APIs, then correct the referrer list and quotas. After that, test in a private window on desktop and mobile. Make sure the address fields can also be typed manually.

Will a failing autocomplete stop customers from buying?

It can. If the city or postcode fields only fill from the dropdown or are locked, customers cannot complete the form. Even when fields are editable, long manual typing increases abandonment, especially on phones.

Can address autocomplete stop working without any site change?

Yes. A card expiring, a quota being hit, a key being rotated, or the provider changing an API can break it while your site stays the same. That is why billing alerts and regular tests help.

Can FunnelGuard tell me if address autocomplete is broken?

Only partly. FunnelGuard runs your real form journey and alerts you if a step fails, but it does not specifically check that the suggestions dropdown appears or read your provider's quota and billing. Test the dropdown by hand and set provider alerts.

Should I keep manual address entry as a fallback?

Yes. Always keep the address fields editable so a provider outage only removes the convenience. This stops a third-party failure from blocking your form.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.