Let customers enter their address information faster and more accurately
The app's form builder allows you to enable autocomplete for addresses using the power of Google Maps to suggest physical addresses and autocomplete address fields.
As shown in the example below, this feature makes it much easier for customers to fill out address fields on a Customer Fields form. It also helps to avoid typos so you can ensure that your customer's address data is accurate.
Connect to Google Maps
You'll need to create an API key within your Google account in order to connect a Customer Fields form to Google Maps. The API key from Google needs to have access to the Places API.
❗Important note: You must have a Google account with billing enabled to use an API key for Google Maps. Even though billing is required, most stores will be able to use the Google Maps APIs for no cost (free!). See this pricing page for more details.
Enable the APIs and create a key
Here's a step-by-step guide for creating an API key for Google Maps:
Go to console.cloud.google.com and log in using your Google Account
Create a new project or select an existing project using the top navbar
After you've selected a project, use the search bar at the top of the page to search for and open the Library page
In the Maps section of the API Library, click on Places API and then click the button for ENABLE
If you have not already done so, you may be asked here to set up your payment profile.
Use the search bar again to search for and open the Credentials page
At the top of the page, click the button for CREATE CREDENTIALS and select API key
In the modal that pops up, click the link for Edit API key
In the API restrictions section, select Restrict key
Select Places API, and then click OK
Click the SAVE button
Once the page refreshes, click on Show key next to the new key you created, which will open a popup modal where you can use the "copy" icon next to the API key to copy it to your computer's clipboard
Add Google Maps API key in the Onboard app
Once your Google Maps API key has been created, you can enable the autocomplete feature on your form by pasting the API key from your clipboard into the app's form settings:
In the Onboard B2B app's form editor, go to the Advanced settings tab
Click the Connect button in the Google Maps API Key section
Paste in your key and click Apply
Save the form and test the autocomplete feature on the storefront
After you have enabled address autocomplete and saved the form changes, make sure to test the feature on your form by typing into the address field.
If you see address suggestions from Google when typing into the address field, then you can rest assured that the feature is working properly.
If you see a red error below the address field, then that indicates there is a problem with the API key. Make sure to go back through the steps above and double-check that your Google account has billing enabled.