Address Autocomplete Anything – Google Address Autocomplete for Any Form
Address Autocomplete Anything adds Google’s address suggestions to any form on your WordPress site. Someone starts typing their street address, picks the right one from the list, and the rest of the address fills itself in: city, state, ZIP or postal code, and country. Your customers type less, and
About this tool.
Address Autocomplete Anything adds Google’s address suggestions to any form on your WordPress site. Someone starts typing their street address, picks the right one from the list, and the rest of the address fills itself in: city, state, ZIP or postal code, and country. Your customers type less, and you get addresses spelled the way the post office spells them.
I first built it for my photography plugin, Sunshine Photo Cart , then realized it could work with anything that has an address field (hence the name). Checkout pages, donation forms, membership sign ups, booking forms and contact forms all work, because it isn’t tied to any one plugin.
See how it works on the Address Autocomplete website
Set it up by clicking your form’s fields
In the settings, choose the page with your form and click “Pick fields”. The plugin opens your form in a new tab, finds the address fields and tags each one as the street address, city, state, ZIP or country. Check the tags, click Done, and the fields show up on the settings page, ready to save. You don’t need to write any code or dig through your page’s HTML.
If your form is in a popup or on the second step of a multi-step form, pause the picker, open the popup or go to that step, then carry on picking. If you’re comfortable with CSS selectors, you can still type them in yourself. How to find your CSS selectors
Addresses that fit your form
- Only the countries you want. Limit suggestions to the countries you ship to or serve. If your form has a country dropdown, the suggestions follow whichever country the customer picks.
- Street format that matches the country. A US address fills in as “2510 Sunny Ridge Ln” and a German one as “Hauptstraße 12”, with nothing for you to set up.
- Full names or short codes. Fill a state field with “California” or “CA”, and a country field with “United States” or “US”, whichever your form expects.
- Several parts in one field. Add text before or after a value, or combine parts of the address into one field, like a single “City, State ZIP” line.
- Backups for missing data. When Google doesn’t return part of an address, choose what to use instead, like the postal town when there’s no city.
- Your language. Show suggestions in the language you choose, or match each visitor’s browser.
- Only where it’s needed. Load it only on the pages with your form, so the rest of your site doesn’t load Google’s script.