<?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: override predefined countries</title>
		<link>https://legacy.forums.gravityhelp.com/topic/override-predefined-countries</link>
		<description>Gravity Support Forums Topic: override predefined countries</description>
		<language>en-US</language>
		<pubDate>Sat, 11 Apr 2026 21:21:52 +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/override-predefined-countries" rel="self" type="application/rss+xml" />

		<item>
			<title>ecafe on "override predefined countries"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/override-predefined-countries#post-46162</link>
			<pubDate>Wed, 11 Jan 2012 16:39:08 +0000</pubDate>
			<dc:creator>ecafe</dc:creator>
			<guid isPermaLink="false">46162@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have an address field, and I'd like to change the list of countries presented on the form. I couldn't find a hook in the documentation for this.&#60;/p&#62;
&#60;p&#62;I found gform_predefined_choices filter but couldn't get it to fire and not even sure if it's what I want.&#60;/p&#62;
&#60;p&#62;I tried:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_predefined_choices&#38;quot;, &#38;quot;ec_add_predefined_country&#38;quot;);
function ec_add_predefined_country($choices)
{

	$choices[&#38;#39;Countries&#38;#39;] = array(&#38;#39;US&#38;#39;, &#38;#39;CA&#38;#39;);

	return $choices;

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
