Example

Google Places Configuration for Forms

Admin Guide for Field Type googleplaces (Bootstrap 5)

Where to Set This

  1. Go to Admin > Configuration form.
  2. Select Entity: customer.
  3. Open the row of the field that will serve as the search field (usually Address / address1).
  4. Set Field type to googleplaces.
  5. Click Advanced and add parameters.
  6. Save and test with front?mod=registration.

Minimum configuration

API_KEY is required.

  • Key: API_KEY
  • Value: <your-google-places-api-key>

Parameters and effect

Key Required Example Effect Consequence for incorrect/missing value
API_KEY Yes AIza... Loading Google Places API No suggestions or API error in browser console
COUNTRY_RESTRICTION No nl or nl,be,de Limits results by country code(s) Too strict: few/no results. Invalid: unexpected filtering
COUNTRY_CODES No nl,be Alias ​​of COUNTRY_RESTRICTION Same as above
TYPES No address Filters type of autocomplete results Invalid type(s): less useful results
DEBUG No 1 of true Logs selected place and components to console No functional problem, but additional console output
LOG_SELECTION No 1 Alias ​​of DEBUG Same as above

Field mapping (optional)

Only use mapping if your field names deviate from standard customer IDs.

Standard fallback (without mapping)

  • address1 -> cust_address1
  • housenum -> cust_housenum
  • postal -> cust_postal
  • city -> cust_city
  • country -> cust_country

Mapping table

Key Example Target field Consequence for wrong value
<