<?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: How to create a field for entering a location with Gravity Forms and Google Map?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-create-a-field-for-entering-a-location-with-gravity-forms-and-google-map</link>
		<description>Gravity Support Forums Topic: How to create a field for entering a location with Gravity Forms and Google Map?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:14:11 +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/how-to-create-a-field-for-entering-a-location-with-gravity-forms-and-google-map" rel="self" type="application/rss+xml" />

		<item>
			<title>1-phantomdentist on "How to create a field for entering a location with Gravity Forms and Google Map?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-create-a-field-for-entering-a-location-with-gravity-forms-and-google-map#post-72473</link>
			<pubDate>Fri, 24 Aug 2012 08:10:03 +0000</pubDate>
			<dc:creator>1-phantomdentist</dc:creator>
			<guid isPermaLink="false">72473@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am also interested in doing this. Have got as far as adding the map using a custom html field, dropping a marker based on postcode entered in a postcode field and allowing the marker to be dragged.  I'm stuck on saving the latlng values of the dropped marker into a hidden field.&#60;/p&#62;
&#60;p&#62;What I would do next is setup a form notification with google maps code embedded and use the placeholder for my latlng hidden field value placeholder do load the selected location. Or possibly, if their are issues loading this put the latlag into a google maps link in the form notification so that the user can click on the link to view the submitted location on google maps.&#60;/p&#62;
&#60;p&#62;Does anyone know how to take the submitted latlng and enter it as the value of the hidden field.&#60;/p&#62;
&#60;p&#62;Heres the code for all interested&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script src=&#38;quot;http://maps.googleapis.com/maps/api/js?&#38;amp;key=AIzaSyCNxoHu7f79iqUKTWw8T6zOWXX2FNvWioY&#38;amp;sensor=false&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;

&#38;lt;script&#38;gt;
var geocoder;
var map;

function initialize() {
  var mapOptions = {
    zoom: 5,
    center: new google.maps.LatLng(54.80068486732233, -4.4384765625),
    mapTypeId: google.maps.MapTypeId.HYBRID,
	mapTypeControl: false
  }
  map = new google.maps.Map(document.getElementById(&#38;quot;map_canvas&#38;quot;), mapOptions);

  //GEOCODER
  geocoder = new google.maps.Geocoder();
}

function codeAddress() {
    var address = document.getElementById(&#38;quot;input_1_9&#38;quot;).value;
	var loc=[];

    geocoder.geocode( { &#38;#39;address&#38;#39;: address}, function(results, status) {
      if (status == google.maps.GeocoderStatus.OK) {
        map.setCenter(results[0].geometry.location);
		map.setZoom(20);
        var marker = new google.maps.Marker({
            map: map,
            position: results[0].geometry.location,
			draggable: true,
        });
		loc[0]=results[0].geometry.location.lat();
        loc[1]=results[0].geometry.location.lng();
		//alert(loc);
		document.getElementById(&#38;#39;field_1_36&#38;#39;).value = loc;
      } else {
        alert(&#38;quot;Geocode was not successful for the following reason: &#38;quot; + status);
      }
    });
  }

window.onload = function () {
	initialize();
}
&#38;lt;/script&#38;gt;

&#38;lt;script&#38;gt;

$(&#38;#39;#input_1_9&#38;#39;).blur(function()
	{
		if( $(this).val() ) {
		codeAddress();
	}
});

$(&#38;#39;#pcaSelectTH88&#38;#39;).change(function(){
	$(&#38;#39;#field_1_25&#38;#39;).css(&#38;#39;display&#38;#39;, &#38;#39;block&#38;#39;);
});

&#38;lt;/script&#38;gt;

&#38;lt;div id=&#38;quot;map_canvas&#38;quot; style=&#38;quot;width: 600px; height: 400px; position: relative;&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick on "How to create a field for entering a location with Gravity Forms and Google Map?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-create-a-field-for-entering-a-location-with-gravity-forms-and-google-map#post-65127</link>
			<pubDate>Sat, 07 Jul 2012 02:27:11 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">65127@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'd be interested if anyone found a solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jeroen1973 on "How to create a field for entering a location with Gravity Forms and Google Map?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-create-a-field-for-entering-a-location-with-gravity-forms-and-google-map#post-45865</link>
			<pubDate>Mon, 09 Jan 2012 11:00:00 +0000</pubDate>
			<dc:creator>Jeroen1973</dc:creator>
			<guid isPermaLink="false">45865@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am looking at implementing the same functionality. Have you found a solution Sammet?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How to create a field for entering a location with Gravity Forms and Google Map?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-create-a-field-for-entering-a-location-with-gravity-forms-and-google-map#post-35695</link>
			<pubDate>Mon, 19 Sep 2011 19:06:40 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">35695@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Gravity Forms doesn't use meta boxes.  It's not a WordPress post or page and isn't built in the post editor.  There isn't currently a Google Maps Field for Gravity Forms.  So there isn't a built in feature to do this.  It would be possible to do what you want to do but it would have to be done as a customization by creating a custom form field and adding it to the form editor.  It's possible, but a more advanced customization and someone would need to be familiar with Gravity Forms hook/filter usage in order to implement it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sammet on "How to create a field for entering a location with Gravity Forms and Google Map?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-create-a-field-for-entering-a-location-with-gravity-forms-and-google-map#post-35675</link>
			<pubDate>Mon, 19 Sep 2011 16:41:13 +0000</pubDate>
			<dc:creator>sammet</dc:creator>
			<guid isPermaLink="false">35675@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Anyone has some idea??
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sammet on "How to create a field for entering a location with Gravity Forms and Google Map?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-create-a-field-for-entering-a-location-with-gravity-forms-and-google-map#post-34568</link>
			<pubDate>Tue, 06 Sep 2011 12:00:53 +0000</pubDate>
			<dc:creator>sammet</dc:creator>
			<guid isPermaLink="false">34568@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi All!&#60;br /&#62;
After researching this forum I am a bit confused when it comes to Gravity Forms and Google Maps....&#60;/p&#62;
&#60;p&#62;What I want is to create a form with a field so that the user can create a marker on a  Google map. For example - to create a marker for his/her favourite city in the world. If possible it would be great if he/she could add  multiple markers...&#60;/p&#62;
&#60;p&#62;How can this be done with GF?&#60;/p&#62;
&#60;p&#62;There are so many questions about this (and it seems there is a field on the way from the developers or???). But I have not found any answer that I cleary understand how to implement this. ;-)  Where should I start? &#60;/p&#62;
&#60;p&#62;Can I use metaboxes to make this work?&#60;br /&#62;
And if so - what is the step-by-step doing this? &#60;/p&#62;
&#60;p&#62;Any other ways, or plugins that makes it easy to insert a user generated Google map function into a Gravity Form?&#60;/p&#62;
&#60;p&#62;Thanks a million for help!&#60;br /&#62;
Sammet
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
