Gravity Forms Geo Field
Add a field to your gravity forms to allow entering of geographic data with ease.
Last updated
Was this helpful?
Add a field to your gravity forms to allow entering of geographic data with ease.
Last updated
Was this helpful?
In addition to an ACF field, Mapster also includes a geographic field you can use with Gravity Forms! This lets you capture geographic information from users and also to display it using a variety of tools.
Start off by going to Forms after you've installed both Gravity Forms and the Pro version of the Mapster WP Maps plugin. Create a new form. Then go and select the Mapster Map field from the right-hand side.
When you've added the field, then click on the field to change its settings.
Set the Field Label (the name of the field), the starting Center Latitude and starting Center Longitude, and the starting Zoom level.
Once you reload, you'll see something like this:
From here, you can change the Map Type between Satellite and Streets.
You can also select the Geographic Type you want users to be able to submit: Point, Line, or Polygon. the tools in the top left of the map will change accordingly.
Now your form is ready for your users or your admins to use!
To use it on the front end, simply have users click the icon in the top left and draw on the map. When they add a point or draw a line, everything will be saved in the database as GeoJSONs.
Once a user has submitted, you will see the responses in the Entries area of Gravity Forms. By clicking on one, you'll see the submitted geography displayed on a map.
With this, you've now saved user input on geographies inside Gravity Forms! Good job.
If you're having trouble with these, try and see what the best zoom and center are, and copy-paste those settings here.