What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Getting a GPS location without user altering itAsked by 7ECareers on January 10, 2017 at 11:35 PM
I would like to know if there's a right mapping widget that can show the user where they are when submitting the form and upon submission, the data will be the gps coordinates of where the user submitted the form from.
User should not be able to alter the GPS coordinate before they submit.
Appreciate your help
I am currently using GeoLocation which gets half the job done, but I am trying to prevent users from altering their location if possible
You can use the Get Visiitor Location Widget to be able to acquire the GPS location of the users who submit your form and they cannot alter the coordinates in your form. In the widget settings, you can hide the Input Box.
If you need further assistance, please let us know.
Tried it but it seems quite inaccurate, the location detected are kilometres away from the actual location. Is there any alternative widget for this?
The Get Visitor Location widget won't report the exact address/location because the nearest output it has is City-based.
To get an actual location based on the IP address of the end-user (or GPS if applicable), use the GPS Location Widget instead (the one you're using before).
Related guide: How-to-Add-a-Widget-to-your-Form
After adding the widget to your form, set the Show Minimap option to NO, then the Output Type to ADDRESS.
To prevent users/respondents from altering this field, this workaround might help:
1. Click the GEAR icon of the widget.
2. Set the Label to DISABLED > and set the Height to 0.
While we're at it, please keep in mind that this widget uses Google Maps API and that it uses 2 methods of fetching your user's location:
1. If the device has GPS, it will use GPS to track the location (accuracy will still depend on how the device GPS was setup).
2. If the device doesn't have GPS (or if it's turned off), it will fallback to using the IP address instead (which is far less accurate than GPS)
You will not get pinpoint accurate results for IP addresses as it's just a rough estimate based on the user's IP. Also, PROXY/VPN/TOR users will have a different IP (thus resulting to inaccurate results). I'd also recommend you read this help page from Google where it was explained "How Google uses your IP address" for location tracking. This will help you better understand why in case you're still not getting accurate results.
You can test it on your phone, while ensuring your phone has the Location/GPS feature turned on, then submit my test form https://form.jotform.com/70111000077940 and you'll see if the address is correct.
It works perfectly well on a laptop but somehow on the mobile device it doesn't seem to capture the location details despite GPS is on. Any ideas why?
I could replicate the issue on a cloned form at my end. As suggested, I checked the form on Desktop and on Mobile with GPS on and GPS OFF.
I am forwarding the issue to development team, so they can look into it and update you.