How to enable, add and use Address Autocomplete in 3B Forms

How to enable, add and use Address Autocomplete in 3B Forms

Related articles:

1. Enable address autocomplete

Address autocomplete requires a Google Maps API key.

In the 3B Forms General Settings hierarchy custom setting, create or edit the organisation default record and set:

Setting Value
Google Maps API Key Your Google Maps API key

The documentation notes that this setting is stored in the field labelled API Password.

Once the key is present, address questions can offer live address search.

2. Add an Address Autocomplete question

In the form builder, add an Address Autocomplete question to the form.

At runtime, this question shows a live search field. The user starts typing an address, selects a suggestion, and 3B Forms reads the structured address components from the selected place.

The autocomplete question itself receives the full formatted address as its own value.

3. Map address components into other questions

Configure component-to-field mappings on the address question.

Each mapping has:

Part Meaning
Source The address component to read
Target The form question to write into

Supported source examples in the docs include:

Add one mapping for each component you want to capture. Unmapped components are not written.

Example pattern:

Source Target question
Street number Street Number
Street name Street Name
City City
Postal code Postal Code
Administrative area State / Province
Country Country

The target list is scope aware: an address question inside a child section maps to sibling questions in that same child section, while an address question on the main form maps to main form fields.

4. Optionally restrict suggestions by country

You can restrict an address question to specific countries using comma-separated two-letter country codes, for example:

US, CA, GB

Leave the country restriction empty for no restriction.

5. Runtime behaviour

When the form is used:

  1. The user types into the address autocomplete field.
  2. Matching addresses are suggested.
  3. The user selects an address.
  4. 3B Forms writes the mapped address components into the target questions.
  5. The autocomplete question keeps the full formatted address as its own value.

If the form is public, also make sure the normal 3B Forms public site setup is in place, including the Forms Site Guest User Access permission set for the guest user, as covered in the post-install setup documentation.