📝 WordPress · All integrations
Address autocomplete in Contact Form 7
Give WordPress forms outside checkout — quotes, bookings, leads — validated Danish addresses with one field id and two script lines.
Contact Form 7 renders plain input fields, so you give the field an id in the form editor and attach the widget with attach(). Using WooCommerce checkout? There's a ready-made WP plugin.
How to set it up
- Get an API key
Free account on the dashboard → copydawa_live_…. - Give the field an id
In the CF7 form editor:[text* adresse id:dk-adresse]. - Load the widget
Enqueue the script in your theme (wp_enqueue_script) or insert it via a footer hook. - Attach to the field
DanadresseAutocomplete.attach('#dk-adresse')— the field now suggests complete DAR addresses.
# CF7 tag + widget init
[text* adresse id:dk-adresse placeholder "Din adresse"]
<!-- I dit theme (fx via wp_footer) -->
<script src="https://danadresse.dk/static/js/danadresse-widget.js"></script>
<script>
DanadresseAutocomplete.attach('#dk-adresse', {
apiKey: 'dawa_live_…'
});
</script>
Good to know
Beyond checkout
CF7 covers quote forms, bookings and leads — for WooCommerce checkout use our dedicated plugin.
Validated leads
Addresses in your leads match authoritative DAR records — ready for route planning and CRM import.
No jQuery dependency
The widget is vanilla JS and won't clash with other plugins.
Ready to try it with Contact Form 7?
Free Hobby key, no credit card — the API answers in under 100 ms.
Get an API key →