Pro, Business and Enterprise plans
Use Google Maps to collect details about locations by adding a location field to your form.
The location field can allow your users to:
- Drop a pin directly on the map to mark a location
- Let the “find my location” option drop a pin for them
- Type an address in the search box and choose from the list of results (when they select one, a pin will be dropped on the map)
Use a location field to help people tell you where they live, or even where they’ve found something important. It's great for reporting issues like:
- Fallen trees
- Damage to property
Before you can use the full functionality of location fields you’ll need to add a Maps API key in OpenForms. If you don’t add an API key, your location field won’t include a map.
Add a Maps API key
Only admins can change the OpenForms settings for Google services. If you’re not an admin you can still use a location field in your form, but it may not include a map if an admin user hasn’t added an API key.
From the main menu, go to Integrations > Connectors > Form add-ons > Google Maps
Select Add in the Google Maps connector details page
Enter your Maps API key (if you don't have one, you'll need to set one up.)
Make sure you have the following options enabled in the Google Maps > APIs screen of the Google developers console.
- Google Places API Web Service
- Google Maps Geocoding API
Save your changes.
You’re ready to add a fully-functional location field to your form.
Add a location field to your form
Open a form from Forms.
Add a location field by dragging it from the fields menu into your form.
Name your location field.
Enter latitude and longitude coordinates to position the center of your map.
Check or uncheck Display map to show or hide the map on your published field.
Choose a Zoom level for your map. A higher number means the map is zoomed in closer.
Save your form when you’re done.
Are you making forms for your local area? If you want to link the responses you get through your location field with your own GIS information, you should use a text field instead. You can set up the text field with a data connection that connects to your internal systems.
Visit Form fields to learn more about the other fields available on OpenForms.