Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module integrates with Drupal Webform to automatically fill in Dutch address details like street and city when a user enters a postcode and house number. It uses the free Open Postcode API and requires separate fields for postcode, house number, street, and city within your webform.

Webform Open Postcode integrates the Open Postcode (openpostcode.nl) API with Drupal Webform to provide automatic, free Dutch address lookup functionality. When users enter a postcode and house number in a webform, this module automatically populates related address fields (street, city) using the Open Postcode API, without the need for API keys or subscription fees. See Open Postcode for more information.

This module was partially created with AI. This module does not work work with the Webform address fields, because it needs separate street and house number fields. Also, the UX requires the internationally somewhat odd order of first asking for postal code and house number. Because of this, the form needs to use separate fields for all parts of the address.

Table of contents

Requirements

  • Drupal 10 or 11
  • Webform module
  • PHP 8.1 or higher
  • Internet connection (for API calls to openpostcode.nl)

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Configuration

Configuring a Webform Element

  1. Edit your webform and navigate to the element you want to use as the postcode input field.
  2. In the element configuration form, expand the “Open Postcode” section
  3. Enable the checkbox “Enable Open Postcode lookup on this element”
  4. Configure the following settings:
    • House number element key: The webform element key that contains the house number (e.g., huisnummer)
    • Street target element key: The element key where the street name should be populated (e.g., straat)
    • City target element key: The element key where the city name should be populated (e.g., woonplaats)
A valid Dutch address might include an addition to the house number, e.g. “1A”. The Open Postcode API is fine with the addition being included in the house number field. It is up to you whether you want to split the house number into two fields, or use a single field with the addition included.

Troubleshooting & FAQ

  • An API key is not required.
  • If values don’t populate, verify both postcode and house number are filled.
  • Check logs (channel webform_openpostcode) for lookup failures.
  • Cached results persist for 12 hours; clear caches to re-test fresh results.

Depends on

Dependencies of the latest stable release

  • webform Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Dec 2025
Latest release
8 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Dec 11, 2025
1.0.0 Stable 9–11 Dec 11, 2025
1.0.x-dev Dev 10–11 Dec 6, 2025