**I am on the beta version 6.0.5. I need to capture the User location while he submits a record. **
In other platform I had used following startup script where “lat” and “longi” are latitude and longitude fields in my database.
$(document).ready(function(){
$("#x_lat").hide() ;
$("#x_longi").hide() ;
});
function success(position) {
var lat = position.coords.latitude;
var longt = position.coords.longitude;
$("#x_lat").val(lat);
$("#x_longi").val(longt);
};
function error() {
$("#x_lat").val("");
$("#x_longi").val("");
};
navigator.geolocation.getCurrentPosition(success, error);