Coordinates Field
Introduction
The Coordinates Field displays and accepts the latitude and longitude of a location connected to a Geocoder Field. Use it when visitors should see or edit the precise coordinates associated with an address, map marker, default location, or detected current location.
Available in: Starter, Pro, and Agency.
The Coordinates Field belongs to a connected location group. The linked Geocoder Field remains the background source of truth and stores the complete structured location.
Configuring the Coordinates Field
Geocoder Field
Select the Geocoder Field whose coordinates this field should display and update. Use a different Geocoder Field for every independent location in the form.
Coordinate Placeholders
- Latitude Placeholder: sets the placeholder shown in the latitude input. The default is Latitude.
- Longitude Placeholder: sets the placeholder shown in the longitude input. The default is Longitude.
Setting Up and Using the Coordinates Field
- Add a Geocoder Field to the form.
- Add a Coordinates Field.
- Select the Geocoder Field that should provide and receive its location.
- Optionally customize the latitude and longitude placeholders.
- Add an Address, Map, or Locator Button Field connected to the same Geocoder when visitors need another way to select the location.
- Save the form and test the connected fields on the frontend.
Selecting an address, moving a connected map marker, detecting the visitor's location, or entering valid coordinates updates the shared location. The other fields connected to that Geocoder then receive the updated location according to their settings.
Inside a Ninja Forms repeater, keep each Coordinates Field and its connected Geocoder Field in the same row structure so every row maintains an independent location.
Saved Value and Outputs
The Coordinates Field saves its value as a comma-separated latitude,longitude string. It does not save the complete structured address record; that record belongs to the connected Geocoder Field.
Supported merge-tag parts include:
fullorcompactfor the complete coordinate pair.latitudeorlatfor latitude.longitudeorlngfor longitude.
Troubleshooting
The coordinate inputs remain empty
Confirm that the Coordinates Field is connected to the intended Geocoder Field and that the Geocoder has received a valid location from an Address, Map, Locator Button, default-coordinate, or coordinate-entry workflow.
Coordinates update the wrong location
Review the selected Geocoder Field. Independent locations should not share one Geocoder unless they are intentionally part of the same synchronized location group.
Coordinates do not match another visible field
Confirm that both visible fields connect to the same Geocoder Field, then resolve or select the location again. Fields connected to different Geocoders represent different locations.