Linux 软件免费装
Banner图

Logical Address Autocomplete for Gravity Forms

开发者 ninjew
更新时间 2026年10月27日 04:05
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-3.0-or-later
版权网址: 版权信息

标签

gravity forms address autocomplete google places address autofill address field

下载

1.0.1 1.0.0

详情介绍:

Add Google-powered address suggestions to Gravity Forms. Use the included single-line Address field or enable autocomplete on Gravity Forms' native Address field to help visitors enter addresses with less typing. Features Two ways to collect an address The dedicated Address field collects a complete address in one input. Prefer separate address components? Enable autocomplete on the native Address field to fill available street, city, state/region, postal code and country values after a visitor selects a suggestion. Customize suggestions Choose countries, place types and language for each field. Prioritize suggestions near a point or within map bounds. Location bias and the global region preference influence results; country restrictions limit which countries can appear. Require a suggestion selection Optionally require visitors to choose an address suggestion. Manually typed, unselected text is cleared, and your custom alert prompts them to select a suggestion. This is not postal address validation or a deliverability guarantee. Google API requirements A Google Maps API key is required for address autocomplete to work. Follow this tutorial to create your Google Maps API key. Google Maps Platform terms | Google privacy policy Need more than autocomplete? Gravity Geolocation offers paid packages for interactive maps, geocoding, coordinates, current-location detection, directions, distance calculations, address validation and drawing tools. Feature availability depends on the package. Gravity Search turns Gravity Forms entries into searchable directories and listings, with filters, proximity search and map displays. These are separate plugins, not features unlocked inside this free plugin by entering a license. Explore packages and pricing | Try the live demos | Read the documentation

安装:

  1. Install and activate Gravity Forms 2.10.3 or newer.
  2. Install and activate this plugin. Deactivate any other Gravity Geolocation package first.
  3. Enable Maps JavaScript API and Places API (New) in your Google Cloud project. Open Forms > Settings > Address Autocomplete and configure your browser API key.
  4. Add a custom Address field, or enable autocomplete on a native Address field in its Address Autocomplete tab.
  5. Save the form and test selecting a suggestion on the front end.
The overview is available under Forms > Address Autocomplete. If Gravity Forms is unavailable, the overview appears under Settings instead.

屏幕截图:

  • Automatically fill the native Address field's street, city, state/region, postal code and country after selecting a suggestion.
  • Configure required suggestion selection, a custom alert, result types, countries, language and location bias for the dedicated single-line Address field.
  • Enable and configure autocomplete for Gravity Forms' native multipart Address field in its Address Autocomplete tab.
  • Set your Google browser API key, default region and result language in the global settings.
  • View saved addresses in entry details and open their locations in Google Maps. The single-line field adds an Open Map link; the native Address field retains its Map It link.
  • Explore included autocomplete features and other Gravity Geolocation packages from the locally bundled overview.

常见问题:

Which fields support address autocomplete?

You can enable address autocomplete on the plugin's custom single-line Address field or Gravity Forms' native multi-part Address field.

Are all the autocomplete controls included free?

Yes! All the address autocomplete controls described above are included in the free plugin.

Can I customize the address suggestions?

Yes! You can limit suggestions to selected countries, choose the types of places to suggest, and prioritize suggestions around a location or area. You can also set a default language and choose a different language for individual fields.

Can I require visitors to select an address suggestion?

Yes! You can require visitors to choose an address from the suggestions and customize the message that guides them to make a selection. Visitors can retry after unselected text is cleared, or enter addresses manually when this option is off.

Can I open a submitted address on a map?

Yes! The dedicated single-line Address field includes an Open Map link on the entry detail page so you can open the saved address in Google Maps.

Does manual typing validate or geocode an address?

Selecting a Google suggestion fills the address field with the details Google returns. Manually typed text is saved as entered. For address verification and standardization, see Gravity Geolocation's paid Address Validation solution.

How do I switch to the premium plugin?

Deactivate the free plugin when switching to Gravity Geolocation or Gravity Search. Your saved fields and settings stay in place. If both are active, the free plugin pauses its integrations and shows an administrator notice.

Is a plugin account or license required?

You can use the plugin without creating a plugin account or buying a license. You'll need your own Google Cloud account and browser API key for Google's address suggestions.

Where can developers find the source code?

Readable JavaScript and SCSS sources are included in the plugin. The full development project, build configuration and dependency lockfile are available on GitHub. To rebuild assets, download the repository, install Node.js/npm, then run npm ci and npm run build (esbuild and Sass). These tools are not required to use the plugin. Includes Choices.js 11.1.0, MIT licensed; readable distribution: assets/js/editor/vendor/choices.js; license: assets/licenses/choices.txt.

更新日志:

1.0.1 1.0.0