How to get the Latitude and Longitude of the person submitting the form?

  • Hangchanleakna
    Asked on August 25, 2018 at 1:11 AM

    Team , 

    i have a question again. Do we have widget with the location contains long and latt in form ? 
    I mean when the users submit the form where they stand , the Map will show the address of where they submit the form. 
    if we do , do the Location works well on the form ? 

    I'm very concern that the map doesn't point to the right location. 

    Your response is much appreciated. 


    thanks with regards, 

    Leakna 

  • Adrian
    Replied on August 25, 2018 at 7:21 AM

    You can use the Geolocation Widget to get the Latitude and Longitude (the Location Coordinates) of the machine filling the form.

    For this to work, you would need to add your own Google Maps API to the Widget.

    You can get one here https://developers.google.com/maps/documentation/javascript/get-api-key

    or if you already have one, you can find it here https://console.developers.google.com/projectselector/apis/credentials

    answers Screenshot 10

    Form DEMO: https://form.jotform.com/82363039530958

    Please note that the users will need to give consent (click allow in the browser) so that the Widget can get the correct location.

    Try the demo using your browser in Private Mode (Incognito) to make sure that you get the prompt to allow the form to get your location. This prompt is made only once and your choice is saved in the browser.