I trying to figure out the easiest way to pass the latitude and longitude information from the web browser using HTML5 to a gravity form. I plan on using (2) custom fields with the visibility set to admin only, one for latitude and one for longitude. I have checked the 'Allow field to be populated dynamically' and will set a 'Parameter Name'. I know I have to use hook, but I don't have very much php experience. It seems like it would be simple to accomplish.
How do I modify my functions.php file to pass the lat long information from the web browser to dynamically populate my 2 custom fields ?