Address Autocomplete

This feature is available to organizations on the Pro, Team, and Enterprise plans.

Integrate your forms with Google Maps to automatically suggest addresses as users start typing.

To get started, select an Address field on the Build page and find the Address Autocomplete option. Here, you can edit the connection name/description, enter your Google Maps API Key (see instructions below), and see which forms your Google Maps integration is connected to.

Quick Tip

To limit address suggestions to a specific country, select a default country in the Address field settings and then deselect the Country subfield.

Restrict address results by country.

Creating a Google Maps API key

To create a Google Maps API key:

  1. Create or sign in to your Google account and then go to Google Cloud.

  2. Select the projects dropdown in the top toolbar to create a new project or select an existing project.
    Add a new project in Google Cloud.

  3. Open the menu in the top left and select Billing. Follow the steps to set up billing information for your account. If this is your first time setting up billing and creating a key, a series of modals will appear, introducing you to the product and generating an API key for you. You may close these modals as we will walk through the individual setup steps later.
    Open the Billing section from the menu.

  4. Open the menu and go to Google Maps Platform > APIs & Services.
    Go the APIs & Services.

  5. Find and enable Maps JavaScript API, Places API, and Places API (New).
    Integrate your forms with Google Maps to automatically suggest addresses as users start typing

  6. Open the menu and go to APIs & Services > Credentials.
    Go to Credentials under APIs & Services.

  7. Select + CREATE CREDENTIALS > API key. If an API key was generated for you after billing was set up, you may ignore this step and continue with the key that was created for you.
    Create a new API key.

  8. To rename your key, select the key name from the list to open the key settings. Make sure to click Save when you’re done!
    Rename your API key.

Setting key security

To set key security in the Google Maps platform:

  1. Open the menu and go to APIs & Services > Credentials.
    Go to Credentials under APIs & Services.

  2. Select your API key from the list.
    Rename your API key.

  3. Under Set an application restriction, select Websites.

  4. Under Website restrictions, select + ADD and to enter the two Urls listed below. Be sure to add any domains where your form is embedded as well.

    • https://*.cognitoforms.com/MyOrg/*, where MyOrg is the name of your organization. Please note that this Url is case-sensitive and must match your organization name as it appears in public links.
    • https://*.cognitoforms.com/myorg/*, where myorg is the name of your organization as it appears in the Url on your form’s Build/Publish/Entries pages.
      Add the Url for your Cognito Forms organization.
  5. Under API restrictions, select Restrict key.

  6. In the dropdown, check Maps JavaScript API, Places API, and Places API (New) on the dropdown and click Save.
    Select Restrict key and check the options in the dropdown.

Setting a usage quota

Quick Tip

Refer to the Places section in the Google Maps Platform Pricing for more information about monthly usage costs.

To set a usage quota in the Google Maps platform:

  1. Open the menu and go to Google Maps Platform > Quotas.
    Go to Google Maps Platform and then select Quotas.

  2. Use the dropdown in the top toolbar to select Places API.
    Places section in Google Maps

  3. Expand the “Requests” section and find the quota table at the bottom.

  4. Click the pencil icon to edit Requests per day and enter your usage quota. Refer to the Places section in the Google Maps Platform Pricing for more information about monthly usage costs.
    Limit requests per day by editing the quota limit

Enabling budget alerts

To enable budget alerts in the Google Maps platform:

  1. Open the menu and go to Billing.
    Open the menu and go to Billing.

  2. Select your billing account and go to Budgets & alerts.
    Go to Budgets & alerts.

  3. Select + CREATE BUDGET from the top toolbar.

  4. Name the budget and set the time range to Monthly.

  5. Select your project name and All services and click Next.
    Edit your budget settings.

  6. Set Budget type to Specified amount and set Target amount to $0.
    Set the budget type and target amount.

  7. Click Finish. You will receive an email if you exceed the limit.