<?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: Address, City  field Bug with solution</title>
		<link>https://legacy.forums.gravityhelp.com/topic/address-city-field-bug-with-solution</link>
		<description>Gravity Support Forums Topic: Address, City  field Bug with solution</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:36:45 +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/address-city-field-bug-with-solution" rel="self" type="application/rss+xml" />

		<item>
			<title>graphical_force on "Address, City  field Bug with solution"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-city-field-bug-with-solution#post-223150</link>
			<pubDate>Wed, 24 Apr 2013 23:27:21 +0000</pubDate>
			<dc:creator>graphical_force</dc:creator>
			<guid isPermaLink="false">223150@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Still an issue in 1.7.&#60;/p&#62;
&#60;p&#62;Here is what I changed to target the id of input_1_5_3_label on 6575 in the common.php file:&#60;/p&#62;
&#60;p&#62;original:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$city = sprintf(&#38;quot;&#38;lt;span class=&#38;#39;ginput_{$city_location}$class_suffix&#38;#39; id=&#38;#39;&#38;quot; . $field_id . &#38;quot;_3_container&#38;#39;&#38;gt;&#38;lt;input type=&#38;#39;text&#38;#39; name=&#38;#39;input_%d.3&#38;#39; id=&#38;#39;%s_3&#38;#39; value=&#38;#39;%s&#38;#39; $tabindex %s/&#38;gt;&#38;lt;label for=&#38;#39;%s_3&#38;#39; id=&#38;#39;$field_id.3_label&#38;#39;&#38;gt;&#38;quot; . apply_filters(&#38;quot;gform_address_city_{$form_id}&#38;quot;, apply_filters(&#38;quot;gform_address_city&#38;quot;,__(&#38;quot;City&#38;quot;, &#38;quot;gravityforms&#38;quot;), $form_id), $form_id) . &#38;quot;&#38;lt;/label&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;, $id, $field_id, $city_value, $disabled_text, $field_id);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;fixed:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$city = sprintf(&#38;quot;&#38;lt;span class=&#38;#39;ginput_{$city_location}$class_suffix&#38;#39; id=&#38;#39;&#38;quot; . $field_id . &#38;quot;_3_container&#38;#39;&#38;gt;&#38;lt;input type=&#38;#39;text&#38;#39; name=&#38;#39;input_%d.3&#38;#39; id=&#38;#39;%s_3&#38;#39; value=&#38;#39;%s&#38;#39; $tabindex %s/&#38;gt;&#38;lt;label for=&#38;#39;%s_3&#38;#39; id=&#38;#39;&#38;quot; . $field_id .&#38;quot;_3_label&#38;#39;&#38;gt;&#38;quot; . apply_filters(&#38;quot;gform_address_city_{$form_id}&#38;quot;, apply_filters(&#38;quot;gform_address_city&#38;quot;,__(&#38;quot;City&#38;quot;, &#38;quot;gravityforms&#38;quot;), $form_id), $form_id) . &#38;quot;&#38;lt;/label&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;, $id, $field_id, $city_value, $disabled_text, $field_id);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Address, City  field Bug with solution"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-city-field-bug-with-solution#post-100961</link>
			<pubDate>Mon, 10 Dec 2012 15:43:45 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">100961@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the heads up. This fix will be included in 1.7.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Address, City  field Bug with solution"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-city-field-bug-with-solution#post-100839</link>
			<pubDate>Mon, 10 Dec 2012 10:42:00 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">100839@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, I'll pass this on to our developers.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>graphical_force on "Address, City  field Bug with solution"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-city-field-bug-with-solution#post-100554</link>
			<pubDate>Sun, 09 Dec 2012 16:15:16 +0000</pubDate>
			<dc:creator>graphical_force</dc:creator>
			<guid isPermaLink="false">100554@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is still an issue in v. 1.6.10. When I update, it breaks it again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>graphical_force on "Address, City  field Bug with solution"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-city-field-bug-with-solution#post-69736</link>
			<pubDate>Mon, 06 Aug 2012 18:00:33 +0000</pubDate>
			<dc:creator>graphical_force</dc:creator>
			<guid isPermaLink="false">69736@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Awesome. This was driving me nuts. I am seeing this in Version 1.6.5.&#60;/p&#62;
&#60;p&#62;I actually changed it on line 2820 and 2836.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Address, City  field Bug with solution"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-city-field-bug-with-solution#post-54991</link>
			<pubDate>Wed, 11 Apr 2012 19:03:08 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">54991@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To confirm.. which version of Gravity Forms are you using?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lshade on "Address, City  field Bug with solution"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-city-field-bug-with-solution#post-54970</link>
			<pubDate>Wed, 11 Apr 2012 17:09:15 +0000</pubDate>
			<dc:creator>lshade</dc:creator>
			<guid isPermaLink="false">54970@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am using gravity forms and using my own styles to make the forms fit my site.  In doing so I found the following bug in the Address block for a form.&#60;/p&#62;
&#60;p&#62;When you include an address block in the form, GF plugin drops in the following code for the city field of the form (specifically the label field)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;label for=&#38;#39;input_1_4_3&#38;#39; id=&#38;#39;input_1_4.3_label&#38;#39;&#38;gt;City&#38;lt;/label&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Unlike the other fields the id has a period rather than an underscore.  When using CSS to style entries this creates a problem.&#60;/p&#62;
&#60;p&#62;The bug is in common.php in the use of a sprintf statement (line 2723 in my release) as shown below &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$city = sprintf(&#38;quot;&#38;lt;span class=&#38;#39;ginput_{$city_location}$class_suffix&#38;#39; id=&#38;#39;&#38;quot; . $field_id . &#38;quot;_3_container&#38;#39;&#38;gt;&#38;lt;input type=&#38;#39;text&#38;#39; name=&#38;#39;input_%d.3&#38;#39; id=&#38;#39;%s_3&#38;#39; value=&#38;#39;%s&#38;#39; $tabindex %s/&#38;gt;&#38;lt;label for=&#38;#39;%s_3&#38;#39; id=&#38;#39;$field_id.3_label&#38;#39;&#38;gt;&#38;quot; . apply_filters(&#38;quot;gform_address_city_{$form_id}&#38;quot;, apply_filters(&#38;quot;gform_address_city&#38;quot;,__(&#38;quot;City&#38;quot;, &#38;quot;gravityforms&#38;quot;), $form_id), $form_id) . &#38;quot;&#38;lt;/label&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;, $id, $field_id, $city_value, $disabled_text, $field_id);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The recommend change is :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$city = sprintf(&#38;quot;&#38;lt;span class=&#38;#39;ginput_{$city_location}$class_suffix&#38;#39; id=&#38;#39;&#38;quot; . $field_id . &#38;quot;_3_container&#38;#39;&#38;gt;&#38;lt;input type=&#38;#39;text&#38;#39; name=&#38;#39;input_%d.3&#38;#39; id=&#38;#39;%s_3&#38;#39; value=&#38;#39;%s&#38;#39; $tabindex %s/&#38;gt;&#38;lt;label for=&#38;#39;%s_3&#38;#39; id=&#38;#39;&#38;quot; . $field_id . &#38;quot;_3_label&#38;#39;&#38;gt;&#38;quot; . apply_filters(&#38;quot;gform_address_city_{$form_id}&#38;quot;, apply_filters(&#38;quot;gform_address_city&#38;quot;,__(&#38;quot;City&#38;quot;, &#38;quot;gravityforms&#38;quot;), $form_id), $form_id) . &#38;quot;&#38;lt;/label&#38;gt;&#38;lt;/span&#38;gt;&#38;quot;, $id, $field_id, $city_value, $disabled_text, $field_id);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Hope this helps everyone&#60;/p&#62;
&#60;p&#62;Loren
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
