Hi, I was wondering if Chronoforms has anything built in to receive location data (Longtitude and Latitude) as part of a form. I could not find any answers in the forums. If you have any ideas of how this can be done I would be most appreciative. Users will be mostly doing this on their mobile phone.
Thanks.
Hi Bob, great, thanks for that I'll give it a try.
The example link does not work.
Hi edebeer,
It works OK for me. https://www.w3schools.com/html/html5_geolocation.asp
Bob
Thanks.
How would I get the Latitude and Longitude in to a hidden field in Chronoforms. In a regular form I would do something like this: <input type="hidden" name="longitude" id="longitude" />. How do I get the id into the "Value" field of the hidden field? I want to save Latitude and Longitude to the database.
Hi edebeer,
If you include empty hidden inputs in the form then you can use the Standard JavaScript value methods to add the data you find.
Bob
How do you use Standard JavaScript value methods to add the data you find?
Hi edebeer,
See this StackOverFlow answer for example https://stackoverflow.com/a/5700542
Bob