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

		<item>
			<title>Carl Hancock on "Bug in Address form  field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-in-address-form-field#post-54972</link>
			<pubDate>Wed, 11 Apr 2012 17:16:44 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">54972@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks! We'll take a look and get this corrected in the next release.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lshade on "Bug in Address form  field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-in-address-form-field#post-54968</link>
			<pubDate>Wed, 11 Apr 2012 17:04:58 +0000</pubDate>
			<dc:creator>lshade</dc:creator>
			<guid isPermaLink="false">54968@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;p&#62;&#38;lt;label for='input_1_4_3' id='input_1_4.3_label'&#38;gt;City&#38;lt;/label&#38;gt;&#60;/p&#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;p&#62; $city = sprintf(&#34;&#38;lt;span class='ginput_{$city_location}$class_suffix' id='&#34; . $field_id . &#34;_3_container'&#38;gt;&#38;lt;input type='text' name='input_%d.3' id='%s_3' value='%s' $tabindex %s/&#38;gt;&#38;lt;label for='%s_3' id='$field_id.3_label'&#38;gt;&#34; . apply_filters(&#34;gform_address_city_{$form_id}&#34;, apply_filters(&#34;gform_address_city&#34;,__(&#34;City&#34;, &#34;gravityforms&#34;), $form_id), $form_id) . &#34;&#38;lt;/label&#38;gt;&#38;lt;/span&#38;gt;&#34;, $id, $field_id, $city_value, $disabled_text, $field_id);&#60;/p&#62;
&#60;p&#62;The recommend change is :&#60;/p&#62;
&#60;p&#62; $city = sprintf(&#34;&#38;lt;span class='ginput_{$city_location}$class_suffix' id='&#34; . $field_id . &#34;_3_container'&#38;gt;&#38;lt;input type='text' name='input_%d.3' id='%s_3' value='%s' $tabindex %s/&#38;gt;&#38;lt;label for='%s_3' id='&#34; . $field_id . &#34;_3_label'&#38;gt;&#34; . apply_filters(&#34;gform_address_city_{$form_id}&#34;, apply_filters(&#34;gform_address_city&#34;,__(&#34;City&#34;, &#34;gravityforms&#34;), $form_id), $form_id) . &#34;&#38;lt;/label&#38;gt;&#38;lt;/span&#38;gt;&#34;, $id, $field_id, $city_value, $disabled_text, $field_id);&#60;/p&#62;
&#60;p&#62;Hope this helps everyone&#60;/p&#62;
&#60;p&#62;Loren
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
