How to add address autocomplete to Gravity Forms
Gravity Forms does not provide address autocomplete in its core form builder. Use the official Geolocation Add-On or a specialist extension such as Gravity Perks Address Autocomplete, then connect Google Places and enable autocomplete on each Address field.
- 01Choose your autocomplete route
- 02Create and restrict the Google key
- 03Configure the official add-on
- 04Test every address component
- 05Fix the usual failures
- 06Use the faster plugin route
What you need
- A working Gravity Forms installation
- WordPress administrator access
- A Google Cloud project with billing enabled
- A Google Maps API key restricted to your site
Choose your autocomplete route
Gravity Forms core does not add Google address suggestions by itself. The supported manual route is to install the official Geolocation Add-On, which adds Google Places integration to Address fields. You can also use a specialist extension if you need features such as country restrictions, map fields, or more control over how addresses are populated.
The official add-on is a sensible choice if you already have access to it. A third-party extension is usually quicker when you only want autocomplete and do not need the wider geolocation features.
Create and restrict the Google key
In Google Cloud, select or create a project, add a billing method, and enable the APIs required by your chosen integration. The official Geolocation Add-On requires Places API and Maps JavaScript API. Create an API key, restrict it to your website’s HTTP referrers, and restrict its API access to only the services you need. Include staging or local domains if you will test there.
Check which Places version your integration supports before enabling APIs. The current Gravity Forms add-on supports the new Places API and has a setting for legacy keys, while the current Gravity Perks documentation says its autocomplete integration is not compatible with Places API (New). Using the wrong API version is a common reason for an empty suggestion list or a browser console error.
Configure the official add-on
Install and activate the Geolocation Add-On, then go to Forms → Settings → Geolocation. Paste the Google Places API key into the key field and save. A green check mark indicates that Gravity Forms has accepted the key. Gravity Forms 2.6 or later is required according to the add-on documentation.
Next, edit the form and open the settings for its Address field. Under the advanced settings, enable Enable Geolocation Suggestions, then save the form. Repeat this for every Address field that should offer suggestions.
Test every address component
Embed the form on a public page and type several characters into the address field. Select a Google suggestion rather than merely typing an address, then confirm that the street, city, state or province, postal code, and country populate the intended inputs.
Test desktop and mobile layouts, international addresses if relevant, apartment or unit numbers, validation, notifications, and the saved entry. Google suggestions do not guarantee that a unit number will be included, so keep the address line 2 or unit field editable and ask users to verify the result. Support reports also commonly involve popups, JavaScript conflicts, and partial population when a single-line field is used instead of the structured Address field.
Fix the usual failures
If no suggestions appear, check the browser console, confirm that the key is authorised for the exact domain, verify billing, and make sure the required APIs are enabled. Also check that another plugin is not loading a conflicting Google Maps JavaScript library. Gravity Forms includes a Google Maps Conflicts setting, but its documentation recommends leaving it disabled unless a conflict is actually occurring.
If the key works but the wrong countries appear, use the integration’s country restriction setting. If only the first address line fills, use a structured Address field and select a complete suggestion. Do not remove normal address inputs or validation just because autocomplete is enabled; users must still be able to correct incomplete or unusual addresses.
Use the faster plugin route
For the quickest setup, install Gravity Perks Address Autocomplete, enter the Google API key under Forms → Settings → Autocomplete, and enable Enable Google Address Autocomplete in each Address field’s Perks settings. Its documentation describes the same Google Places API and Maps JavaScript API connection, with options for country restrictions and address-field population.
This route is a good fit when Gravity Forms is your main form builder and you want address suggestions without configuring the wider geolocation feature set. Follow the plugin’s current API instructions carefully, especially its restriction against Places API (New), and test the form after activating any caching or optimisation plugin.
Let Gravity Perks Address Autocomplete do it
Google Places-powered suggestions for faster, more accurate form addresses; ideal when Gravity Forms is your primary form builder.
Sources
- docs.gravityforms.com /using-the-geolocation-add-on/?utm_source=openai
- docs.gravityforms.com /setting-up-the-geolocation-add-on/?utm_source=openai
- docs.gravityforms.com /geolocation-add-on-settings-reference/?utm_source=openai
- wordpress.org /support/plugin/gf-google-address-autocomplete/?utm_source=o…
- gravitywiz.com /documentation/gravity-forms-address-autocomplete/?utm_sourc…
Questions
- Does Gravity Forms have address autocomplete built in?
- No, Gravity Forms core does not provide Google address suggestions without an add-on or extension. The official route is the Geolocation Add-On, which connects Address fields to Google Places and adds an autocomplete option in the field settings. A specialist extension such as Gravity Perks Address Autocomplete is another option when you only need autocomplete-related features.
- What Google APIs does Gravity Forms address autocomplete need?
- The required APIs depend on the integration, but the documented setup normally includes Places API and Maps JavaScript API, plus an active billing method in Google Cloud. Restrict the key by website referrer and API so it cannot be freely reused elsewhere. Check whether your chosen add-on supports Places API (New), because different Gravity Forms integrations currently have different compatibility requirements.
- Why are address suggestions not appearing in my form?
- The most common causes are an incorrect or unrestricted API key, disabled billing, a missing Places or Maps JavaScript API, an unsupported Places API version, or a JavaScript conflict. Check the key status in the integration settings, inspect the browser console, and test the form on the exact domain allowed by the key. Popups and caching plugins can also prevent initialisation.
- Can autocomplete fill city, state, and postcode automatically?
- Yes, a structured Gravity Forms Address field can populate its component inputs after the user selects a suggestion. A single-line text field may only contain the formatted address unless you add custom mapping. Users should still be able to edit the populated values because Google may omit apartment numbers, use an unexpected regional format, or return an address that needs correcting.
- Do I need a plugin to add address autocomplete to Gravity Forms?
- Yes, you need an add-on or extension because Gravity Forms core has no native Google Places autocomplete control. Use the official Geolocation Add-On if you also want location data and geolocation settings, or use Gravity Perks Address Autocomplete for a more focused autocomplete setup. Both routes still require a Google API key and careful front-end testing.