Address Autocomplete 1.7.2: Smarter Country Filtering & Multi-Line Templates
We just released Address Autocomplete 1.7.2 with two significant new features that make address entry faster and more accurate for your users.
Dynamic Country Filtering
The headline feature in this release is dynamic country filtering. When your form includes a country selector, Google Places autocomplete suggestions now automatically filter to match the selected country.
Why this matters: Previously, if a user selected “Canada” as their country, they might still see address suggestions from other countries as they typed. This created confusion and potential errors. Now the autocomplete respects their country selection, showing only relevant addresses.
This works generically with any form that has a country field configured in your address group. Whether you’re using WooCommerce checkout, Gravity Forms, or another supported form plugin, the filtering happens automatically.
We’ve also added a small UX improvement: the address input field clears when the country changes. This prevents stale suggestions from a previous country selection and signals to users that they should enter their address fresh.
Multi-Line Data Templates
The data template field now supports multi-line templates. Simply press Enter to add line breaks when building your template.
How you might use this: If you’re populating a textarea with a formatted address block, you can now structure it exactly how you want:
{street_address}
{city}, {state} {postal_code}
{country}
The plugin intelligently renders these line breaks based on where the data goes:
- Textarea fields: Actual newline characters
- Div elements:
<br>tags - Input fields: Spaces (since inputs don’t support line breaks)
WooCommerce Improvements
WooCommerce checkout—both classic and block-based—now has enhanced support through data store subscription. This ensures the country filtering works reliably even with WooCommerce’s reactive checkout forms.
UI Refinements
Two small improvements to the admin interface:
- Data population fields are now displayed in a table layout, making it easier to see and manage your field mappings at a glance
- The “Select data” button has moved next to the data template textarea, putting it right where you need it
Update now through your WordPress dashboard to get these improvements.