The Address Field in Gravity Geolocation enhances address inputs in your Gravity Forms by integrating advanced geolocation functionalities. It supports real-time address suggestions powered by the Google Places API, a locator button for detecting users' current locations, and advanced controls for refining autocomplete results based on proximity or geographic boundaries.
This field works seamlessly with the Geocoder Field and other Gravity Geolocation fields to provide dynamic and accurate address handling. Its configuration options allow you to synchronize geolocation data, customize user interaction, and ensure a seamless form experience.
1. Geocoder Field
Select the Geocoder Field to synchronize with this Address Field, enabling seamless communication between fields. See Geolocation Fields Syncing.
2. Locator Button
Activate a button within the Address Field to fetch the user’s current location. You can customize its behavior using the settings below. Note: This option requires user approval for location access through browser permissions.
Activate Locator Button
Check this box to enable the locator button.
IP Address Usage
Specify how the IP address is used for retrieving location details. Note: Ensure an IP geolocation provider is configured in the plugin settings.
Disabled: Do not use IP-based location services (Default).
Primary: Use the IP address as the main method to determine location.
Fallback: Use the IP address only if browser-based location retrieval fails.
3. Address Autocomplete
Enable real-time address suggestions powered by the Google Places API and customize how suggestions behave in your form.
Activate Address Autocomplete
Check this setting to turn on autocomplete functionality for address fields.
Enforce Address Selection
Prevent users from manually typing an address by requiring selection from autocomplete suggestions.
Enforcement Message
Customize the alert message shown when users try to enter an address manually (Example: Please select an address from the list).
Suggestion Types
Define the types of address suggestions to display:
All Types: Show all available suggestion categories (Default).
Geocode: Provide precise location coordinates.
Address: Display complete address details, including street and building information.
Establishment: Suggest businesses and notable points of interest.
Regions: Broader areas such as states, provinces, or regions.
Cities: Limit suggestions to city-level results.
Country Restrictions
Limit autocomplete suggestions to specific countries. You can select up to five countries.
4. Autocomplete Bounds Restrictions
Refine autocomplete suggestions by applying restrictions based on proximity, specific geographic boundaries, or the user’s current location.
Restriction Type
Choose how to limit autocomplete results:
Proximity: Constrain results to a defined radius around a central point.
Area Bounds: Limit results to a specified rectangular geographic area.
Page Locator: Restrict suggestions based on the user’s detected location when the form loads.
Proximity Settings
Configure the central coordinates and radius for proximity-based restrictions.
Latitude: Input the latitude of the center point (Example: 26.423277).
Longitude: Input the longitude of the center point (Example: -82.021776).
Radius: Specify the restriction radius in meters (Example: 100).
Setting Up and Using the Address Field
Follow these steps to configure the Address Field effectively in your Gravity Forms:
Add the Address Field: Insert the field into your form via the Gravity Forms editor.
Sync with a Geocoder Field: Link the Address Field to a Geocoder Field for dynamic updates.
Configure Field Options: Customize locator, autocomplete, and restriction settings.
Test Your Configuration: Preview your form to ensure all Address Field features function smoothly.