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.
Thanks.
Hi spytech,
There is nothing 'built-in' but if the browser has access to the phone's location then you can use it. See here for some examples.
Bob
There is nothing 'built-in' but if the browser has access to the phone's location then you can use it. See here for some examples.
Bob
Hi Bob, great, thanks for that I'll give it a try.
Hi edebeer,
It works OK for me. https://www.w3schools.com/html/html5_geolocation.asp
Bob
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.
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
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
This topic is locked and no more replies can be posted.