Skip to main content

Fix address autocomplete when the Map still works

The public Map and address suggestions are related but separate. A Google Map can render while the Location field shows no suggestions because autocomplete needs the Places library and the field-level feature enabled.

Check the Search form

  1. Edit the Search form used by the published Layout.
  2. Select its Location field.
  3. Enable Address autocomplete (Google).
  4. Check its optional country restriction.
  5. Save the Search form and then verify the Layout references that form.

Check Settings and the key

Under Settings → Map, save a browser key and leave global autocomplete enabled. The plugin may load Google Places for a Location field even when the visible Map provider is Leaflet.

In Google Cloud, permit the relevant Places service on the browser key and retain Website restrictions for the current origin. Inspect Console for ApiTargetBlockedMapError, referrer errors, or Places-specific authorization messages.

Check for conflicting loaders

If another plugin loads Google Maps without the Places library first, the Map may work while autocomplete does not. Resolve the duplicate loader instead of adding a third script. Follow Fix Google Maps loaded multiple times.

Autocomplete suggestions help establish coordinates for radius and distance. If suggestions are unavailable, visitors can still submit text search, but that does not guarantee a latitude/longitude origin unless the plugin successfully geocodes it.