<?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: Add Custom Field to Address Field Set</title>
		<link>https://legacy.forums.gravityhelp.com/topic/add-custom-field-to-address-field-set</link>
		<description>Gravity Support Forums Topic: Add Custom Field to Address Field Set</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 19:59:37 +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/add-custom-field-to-address-field-set" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Add Custom Field to Address Field Set"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-custom-field-to-address-field-set#post-71218</link>
			<pubDate>Wed, 15 Aug 2012 18:58:04 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">71218@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Do not modify the plugin forms.css file.  Those changes, as you know, will be lost on upgrade.  If the custom CSS you added does not appear to have any effect, you need to make the selectors more specific, or you need to add the &#60;strong&#62;!important&#60;/strong&#62; property.  Try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[css]
.gform_wrapper .ginput_complex #input_1_3_5_container {
	width: 30%!important;
}
.gform_wrapper .gfield_error .ginput_complex #input_1_3_5_container {
	width: 30%!important;
}
.gform_wrapper .ginput_complex #input_1_3_3_container {
	width: 69%!important;
}
.gform_wrapper .gfield_error .ginput_complex #input_1_3_3_container {
	width: 69%!important;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The important property should force this rule to apply above all other rules.&#60;/p&#62;
&#60;p&#62;More reading on CSS Specificity:&#60;br /&#62;
&#60;a href=&#34;http://css-tricks.com/specifics-on-css-specificity/&#34; rel=&#34;nofollow&#34;&#62;http://css-tricks.com/specifics-on-css-specificity/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sprinti on "Add Custom Field to Address Field Set"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-custom-field-to-address-field-set#post-71197</link>
			<pubDate>Wed, 15 Aug 2012 15:34:13 +0000</pubDate>
			<dc:creator>Sprinti</dc:creator>
			<guid isPermaLink="false">71197@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you David, I appappreciate your tip with the php-file. &#60;/p&#62;
&#60;p&#62;That part is nearly done.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/**
 * Changes for Gravity-Forms
 * (c) 2012 Hartmut Schöpke, Xiega UG, Dortmund,
 *
 * german adress format
 */

add_filter(&#38;quot;gform_address_types&#38;quot;, &#38;quot;german_address&#38;quot;, 10, 2);
function german_address($address_types, $form_id){
    $address_types[&#38;quot;german&#38;quot;] = array(
                                    &#38;quot;label&#38;quot; =&#38;gt; &#38;quot;deutsch&#38;quot;,
                                    &#38;quot;country&#38;quot; =&#38;gt; &#38;quot;Deutschland&#38;quot;,
                                    &#38;quot;zip_label&#38;quot; =&#38;gt; &#38;quot;PLZ&#38;quot;,
                                    &#38;quot;state_label&#38;quot; =&#38;gt; &#38;quot;Bundesland&#38;quot;,
                                    &#38;quot;states&#38;quot; =&#38;gt; array(&#38;quot;&#38;quot;, &#38;quot;Baden-W&#38;amp;uuml;rttemberg&#38;quot;, &#38;quot;Bayern&#38;quot;, &#38;quot;Berlin&#38;quot;, &#38;quot;Brandenburg&#38;quot;, &#38;quot;Bremen&#38;quot;, &#38;quot;Hamburg&#38;quot;, &#38;quot;Hessen&#38;quot;, &#38;quot;Mecklenburg-Vorpommern&#38;quot;, &#38;quot;Niedersachsen&#38;quot;, &#38;quot;Nordrhein-Westfalen&#38;quot;, &#38;quot;Rheinland-Pfalz&#38;quot;, &#38;quot;Saarland&#38;quot;, &#38;quot;Sachsen&#38;quot;, &#38;quot;Sachsen-Anhalt&#38;quot;, &#38;quot;Schleswig-Holstein&#38;quot;, &#38;quot;Th&#38;amp;uuml;ringen&#38;quot;)
    );
    return $address_types;
}
add_filter(&#38;quot;gform_address_street&#38;quot;, &#38;quot;change_address_street&#38;quot;, 10, 2);
function change_address_street($label, $form_id){
    return &#38;quot;Stra&#38;amp;szlig;e&#38;quot;;
}
add_filter(&#38;quot;gform_address_display_format&#38;quot;, &#38;quot;address_format&#38;quot;);
function address_format($format){
    return &#38;quot;zip_before_city&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;---&#60;/p&#62;
&#60;p&#62;I've got difficulties with the css-part.&#60;/p&#62;
&#60;p&#62;First I've included the css below all other in the WP-Thems css file; but It shows no effect.&#60;br /&#62;
Then I traced it in firebug and oh, what a miracle. the css file /plugins/gravityforms/css/forms.css is the last in order of the cascade.&#60;br /&#62;
Then I put the new css-parts there and It works.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/**
 * Chnages for gravity forms
 * (c) 2012 Hartmut Schöpke, Xiega UG, Dortmund
 *
 * formular design for zip and city as customary in germany
 */
.gform_wrapper .ginput_complex #input_1_3_5_container {
	width: 30%;
}
.gform_wrapper .gfield_error .ginput_complex #input_1_3_5_container {
	width: 30%;
}
.gform_wrapper .ginput_complex #input_1_3_3_container {
	width: 69%;
}
.gform_wrapper .gfield_error .ginput_complex #input_1_3_3_container {
	width: 69%;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But now I think I've got an Problem again with auto updates.&#60;/p&#62;
&#60;p&#62;Possible the Problem is because I use the WP4FB plugin? The three gravity styles (I've got in preview) aren't in the wp4fb-page (page for a facebook-app). To get nearly the same result I must include all of the forms.css-code on top of the wp4fb.css.&#60;br /&#62;
Unfortunately the css-parts for my address fields have no effect in that file (neither, between form and wp4fb parts, nor at the end) because the forms.css in /plugins/gravityforms override the style.&#60;/p&#62;
&#60;p&#62;Is there any possibility to solve the problem with auto-update (or doesn't the update overwrite that file?).&#60;/p&#62;
&#60;p&#62;Until I've solved the problem you could find &#60;a href=&#34;http://x-bewerbung.xiega-fanpages.de/iframe/gravity-formular/&#34; rel=&#34;nofollow&#34;&#62;an Example of the generated form&#60;/a&#62; here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Add Custom Field to Address Field Set"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-custom-field-to-address-field-set#post-70989</link>
			<pubDate>Tue, 14 Aug 2012 10:45:45 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">70989@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This code goes in your theme's functions.php file and as such wouldn't be touched by a Gravity Forms update. You don't edit Gravity Forms core code to utilize our hooks system.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sprinti on "Add Custom Field to Address Field Set"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-custom-field-to-address-field-set#post-70984</link>
			<pubDate>Tue, 14 Aug 2012 10:01:36 +0000</pubDate>
			<dc:creator>Sprinti</dc:creator>
			<guid isPermaLink="false">70984@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've want to place an new address type for germany. Mr. Flahaut shows the link for doing that above. On that page the example locate in common.php.&#60;br /&#62;
Could I change that code without side effects with the auto updates?&#60;/p&#62;
&#60;p&#62;The other source parts, inclusive add_filter(), are also edit/place in the common.php?&#60;/p&#62;
&#60;p&#62;Which files could I change also, without side effects with auto update?&#60;br /&#62;
Where could I find some of these global information?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Add Custom Field to Address Field Set"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-custom-field-to-address-field-set#post-29577</link>
			<pubDate>Sun, 10 Jul 2011 23:03:25 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">29577@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Have you tried the filter to create a new address type?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_address_types&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_address_types&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>willmccreery on "Add Custom Field to Address Field Set"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-custom-field-to-address-field-set#post-29575</link>
			<pubDate>Sun, 10 Jul 2011 22:51:28 +0000</pubDate>
			<dc:creator>willmccreery</dc:creator>
			<guid isPermaLink="false">29575@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I apologize if this has been discussed elsewhere.&#60;/p&#62;
&#60;p&#62;Does anyone know how to hook a custom field into the address advanced field?&#60;/p&#62;
&#60;p&#62;For instance:  I would like my address fields to display : address/city/county/state/zip in that order, so simply renaming labels doesn't do me any good.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
