<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Passing Geo Location to Gravity Form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/passing-geo-location-to-gravity-form</link>
		<description>Gravity Support Forums Topic: Passing Geo Location to Gravity Form</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 12:06:09 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/passing-geo-location-to-gravity-form" rel="self" type="application/rss+xml" />

		<item>
			<title>jrothca on "Passing Geo Location to Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-geo-location-to-gravity-form#post-51985</link>
			<pubDate>Sat, 10 Mar 2012 18:49:22 +0000</pubDate>
			<dc:creator>jrothca</dc:creator>
			<guid isPermaLink="false">51985@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here's how I did it.&#60;br /&#62;
Save lat long data to wordpress&#60;br /&#62;
1. Set gravity form to save the lat and long data to the wordpress custom fields 'geo_latitude' and 'geo_longitude'  (without the quotes, these (2) field names are supported by many geo location plugins for wordpress)&#60;br /&#62;
Display location data in the post&#60;br /&#62;
1. I used the plugin Geo Mashup. You can use others as long as they support Wordpress Geodata Meta Fields .  In the general setting you need to turn on 'Copy Geodata Meta Fields' (turning this on enables the plugin to use the lat and long data that is saved in the custom fields you created above)&#60;br /&#62;
2. Use one of Geo Mashup's many shortcodes or template tags to display the location data in your post.  Use the template tags in your php files to have the location data automatically displayed to  posts or index page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stuarthenshall on "Passing Geo Location to Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-geo-location-to-gravity-form#post-51859</link>
			<pubDate>Fri, 09 Mar 2012 09:49:54 +0000</pubDate>
			<dc:creator>stuarthenshall</dc:creator>
			<guid isPermaLink="false">51859@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok.. Some questions. My intent was to capture longitude and latitude (as above) and then use the CustomFields plug-in for gravity forms to add a geolocation element to the post. CustomFields recognizes the Wordpress Geolocation plug-in. As the form is submitted the blog post is created. &#60;/p&#62;
&#60;p&#62;However, the location data isn't posted with the blog? Help appreciated. Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stuarthenshall on "Passing Geo Location to Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-geo-location-to-gravity-form#post-51841</link>
			<pubDate>Fri, 09 Mar 2012 07:38:36 +0000</pubDate>
			<dc:creator>stuarthenshall</dc:creator>
			<guid isPermaLink="false">51841@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for sharing! This worked for me and happened to be the same approach I'd been going down. I think geolocation should be supported more easily with gravity forms.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jrothca on "Passing Geo Location to Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-geo-location-to-gravity-form#post-48369</link>
			<pubDate>Sat, 04 Feb 2012 23:00:18 +0000</pubDate>
			<dc:creator>jrothca</dc:creator>
			<guid isPermaLink="false">48369@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I figured it out.  It's most likely hack.  If a GF employee could explain how to use hooks to do this, it would be helpful.&#60;/p&#62;
&#60;p&#62;This is what I did to get it to work.&#60;br /&#62;
I put this in my header file to have the script loaded:&#60;br /&#62;
'&#38;lt;script src=&#34;http://www.google.com/jsapi&#34;&#38;gt;&#38;lt;/script&#38;gt;&#60;br /&#62;
    &#38;lt;script&#38;gt;&#60;br /&#62;
      google.load(&#34;jquery&#34;, &#34;1.4.1&#34;);&#60;br /&#62;
    &#38;lt;/script&#38;gt;'&#60;/p&#62;
&#60;p&#62;I put this in my page template that has the gravity form on it.&#60;br /&#62;
'&#38;lt;script&#38;gt;&#60;br /&#62;
        navigator.geolocation.getCurrentPosition(&#60;br /&#62;
          function(pos) {&#60;br /&#62;
            $(&#34;#input_1_12&#34;).val(pos.coords.latitude);&#60;br /&#62;
            $(&#34;#input_1_13&#34;).val(pos.coords.longitude);&#60;br /&#62;
          }&#60;br /&#62;
        );&#60;br /&#62;
      &#38;lt;/script&#38;gt;'&#60;/p&#62;
&#60;p&#62;The input_1_12 &#38;amp; input_1_13 variables correspond to the 'input ID' the gravity form creates. When the page loads the browser dynamically populates the form with input ID input_1_12 for latitude &#38;amp; input_1_13 for longitude.&#60;/p&#62;
&#60;p&#62;The input_1_12 number will very depending on how many GF's you've created and how many input fields you have on your form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jrothca on "Passing Geo Location to Gravity Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-geo-location-to-gravity-form#post-47711</link>
			<pubDate>Sun, 29 Jan 2012 18:28:16 +0000</pubDate>
			<dc:creator>jrothca</dc:creator>
			<guid isPermaLink="false">47711@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;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 ?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
