-
OskoAsked on August 24, 2025 at 11:09 AM
I want to display the geographic location based on the zip code entered in my address field.
-
Jan JotForm SupportReplied on August 24, 2025 at 11:56 AM
Hi Jonathan,
Thanks for reaching out to Jotform Support. Jotform doesn’t have a built-in function that automatically converts ZIP codes into city/state names. You can try the Geolocation widget that will show the location but you need Google Maps API key to make it work. It's really easy to add that to your form. Let me show you how:
- In Form Builder, click on the Widgets tab in the Form Elements panel.
- Search for Geolocation widget and drag it to your form.
- Select the widget and click on the Wand icon to open settings.
- In the Google Maps API Key box, paste the API key you created in Google Cloud Console. Click on Update button to save.
If you see the “Oops! Something went wrong” message, that usually means:
- The API key isn’t added.
- The key is restricted incorrectly. Make sure you enabled Maps JavaScript API and allowed referrers https://www.jotform.com/* and https://form.jotform.com/*
Once the key is valid, the map will load correctly on your form. Give it a try and let us know if you need help.
-
OskoReplied on August 24, 2025 at 1:38 PM
So this is based on the current location the person is in at the time they are filling out the form? Isnt there a way to use the address field to auto populate the map?
-
Kyle JotForm SupportReplied on August 24, 2025 at 1:59 PM
Hi Osko,
Yes, the Geolocation widget detects the user's current location at the time of filling out the form, not the location based on the ZIP code they enter manually. Unfortunately, Jotform doesn’t currently support automatic map population based on a ZIP code entered in the address field. That kind of functionality would require a custom integration with a third-party API (like Google Maps Geocoding API), which isn’t natively supported in the Form Builder.
Let us know if there’s anything else we can do for you.