Hi everyone,
I have been trying to get some javascript to grab the gps geolocation of the user when a js snippet is run and add this to a couple of fields (longitude / latitude ).
My issue is saving the var to the fields -
This is my js ( I think this works ok)…
navigator.geolocation.getCurrentPosition(function(position) { <br> var gps = (position.coords.latitude+position.coords.longitude); <br> window.GlobalVar = gps;
continueSomeProcess();<br>});
Does anyone have any ideas how to get this to work?