What does it do?
This plugin integrates the Google Places Autocomplete API directly with Gravity Forms Address fields. Best of all, you just need to provide an API key and enable one setting.
By incorporating Address Autocomplete, you can:
- Simplify the address entry experience on desktop and mobile devices
- Save your users time – autocomplete an address in seconds
- Increase your form’s conversions and reduce form abandonment
- One-click enable for Address Fields.
Provide your Google API key and click one checkbox on the field to get Google-powered Address Autocomplete.
- Works with all address types.
Whether your Address field is configured to be a United States, Canadian, or international address, Address Autocomplete will populate it correctly.
- Restrict available countries.
Are you only offering services in a limited set of countries? Restrict the countries directly from the settings. Address fields using the United States or Canadian address types will automatically be restricted.
- Developer friendly.
- Automatic updates.
Get updates and the latest features right in your dashboard.
- Legendary support.
We’re here to help! And we mean it.
- How do I enable this functionality?
- Feature Details
How do I enable this functionality?
After installing and activating Gravity Forms Address Autocomplete, an Enable Google Address Autocomplete checkbox will display under the Perks section for Address fields.
The following instructions will show you how to generate a Google API key for Address Autocomplete and enable it for an Address field.
Generate and enter Google API key
Before you can use Address Autocomplete, you need to generate an API key in the Google Cloud Platform console.
|Create and Restrict Google API key. See detailed instructions.|
|Enter Google API Key.|
Enable on Address field
|Add an Address field to your form.|
|Open the field’s settings, navigate to the Perks section, and check Enable Google Address Autocomplete.|
Before Address Autocomplete can function, it needs to be configured.
You can navigate to Address Autocomplete’s setting by going to Forms » Settings » Autocomplete.
If you need to restrict the results of all autocomplete results to specific countries, select the countries using the “Countries” setting.
Unselecting all countries will allow results to be returned from all countries.
After you have an API key generated and have entered it, all that is left is checking “Enable Google Address Autocomplete” on the address fields you wish to enable autocomplete on.
This is great for copying shipping addresses into billing addresses!
Generating a Google API Key
Select or Create Google Cloud Platform Project
Before enabling APIs and generating an API key, you need to either select an existing Google Cloud Platform or create a new GCP project.
If creating a new project, we recommend scoping it to the specific site you are working on in case you need to use any other Google services for that site.
After you’ve selected or created a Google Cloud Platform project, navigate to APIs & Services » Services and activate the following APIs:
With the APIs enabled, it’s now time to generate an API key to use in the “Google API Key” setting for GF Address Autocomplete.
First, Navigate to APIs & Services » Credentials. Then, click “+ Create Credentials” followed by “API key”
You will see that an API key is immediately generated. While you can go ahead and use it in its current state, it’s incredibly important to go through the steps of restricting the key to prevent unauthorized use.
After clicking Restrict Key or the edit icon on an existing API key for autocomplete, it’s recommended you do the following:
- Name the API Key
- Check HTTP referrers (web sites) under Application restrictions
- Add the website domain(s) that should be allowed. If you have a local or staging copy of the website, those need to be accounted for here as well.
Once configured, the settings for the API key should look something like the following:
Is the Google Places API free?
When you use the Google Places API, Google automatically provides a $200 monthly credit that Google Places API requests are charged against.
As of writing, you can expect around 10,000 autocomplete sessions a month to be covered by the $200 monthly credit.
See the Google Maps Platform Pricing Table for more specific and up-to-date details.