Display geographic location by zip code

  • Profile Image
    Osko
    Asked 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.

    Display geographic location by zip code Image 1 Screenshot 20

  • Profile Image
    Jan JotForm Support
    Replied 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:

    1. In Form Builder, click on the Widgets tab in the Form Elements panel.
    2. Search for Geolocation widget and drag it to your form.
    3. Select the widget and click on the Wand icon to open settings.
    4. In the Google Maps API Key box, paste the API key you created in Google Cloud Console. Click on Update button to save.

    Display geographic location by zip code Image 1 Screenshot 20

    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.

  • Profile Image
    Osko
    Replied 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?

  • Profile Image
    Kyle JotForm Support
    Replied 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.