<?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: Can Country be automatically set depending on value in States dropdown?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/can-country-be-automatically-set-depending-on-value-in-states-dropdown</link>
		<description>Gravity Support Forums Topic: Can Country be automatically set depending on value in States dropdown?</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 10:32:10 +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/can-country-be-automatically-set-depending-on-value-in-states-dropdown" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Can Country be automatically set depending on value in States dropdown?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-country-be-automatically-set-depending-on-value-in-states-dropdown#post-191103</link>
			<pubDate>Sat, 30 Mar 2013 21:17:40 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">191103@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think you can use some AJAX to make this work on the front end. Something like this code a user provided: &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/gform_pre_render-upon-previous-dropdown-condition#post-137821&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/gform_pre_render-upon-previous-dropdown-condition#post-137821&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Matt on "Can Country be automatically set depending on value in States dropdown?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-country-be-automatically-set-depending-on-value-in-states-dropdown#post-185640</link>
			<pubDate>Tue, 26 Mar 2013 13:37:52 +0000</pubDate>
			<dc:creator>Matt</dc:creator>
			<guid isPermaLink="false">185640@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If I do something like suggested here...&#60;br /&#62;
&#60;a href=&#34;http://www.9lessons.info/2010/08/dynamic-dependent-select-box-using.html&#34; rel=&#34;nofollow&#34;&#62;http://www.9lessons.info/2010/08/dynamic-dependent-select-box-using.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Is there a way / what is the best way to pass the values into hidden fields in gravity forms? &#60;/p&#62;
&#60;p&#62;Is it better to pass by value or reference? Obviously by reference if the user changes it but.... if they don't is there an advantage either way.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can Country be automatically set depending on value in States dropdown?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-country-be-automatically-set-depending-on-value-in-states-dropdown#post-68123</link>
			<pubDate>Thu, 26 Jul 2012 19:15:08 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">68123@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is nothing like that built in to Gravity Forms at the moment.  Sorry about that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gmw on "Can Country be automatically set depending on value in States dropdown?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-country-be-automatically-set-depending-on-value-in-states-dropdown#post-68068</link>
			<pubDate>Thu, 26 Jul 2012 11:39:06 +0000</pubDate>
			<dc:creator>gmw</dc:creator>
			<guid isPermaLink="false">68068@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris for your prompt response! So what you are telling me is that if I want to build a form OUTSIDE of GF then I could use a method such as the one you linked to. Within GF there is nothing, currently that I can do. &#60;/p&#62;
&#60;p&#62;I was hoping that there might be some hook available (e.g. when the state field was saved) that would allow me to query the state field and then update an admin-only country field.&#60;/p&#62;
&#60;p&#62;Anyway I'm probably just going to put the country dropdown back on the form and just live with it. Thanks again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can Country be automatically set depending on value in States dropdown?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-country-be-automatically-set-depending-on-value-in-states-dropdown#post-67922</link>
			<pubDate>Wed, 25 Jul 2012 13:50:39 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">67922@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can do this yourself, but it's not built in to Gravity Forms.  This type of functionality is sometimes referred to as dependent drop downs or parent/child drop downs.  You see this commonly with automobiles.  Select Year &#38;gt; Make &#38;gt; Model (depends on the maker) &#38;gt; Style (depends on the Model), etc.&#60;/p&#62;
&#60;p&#62;Here is one explanation of how to do it.&#60;br /&#62;
&#60;a href=&#34;http://www.9lessons.info/2010/08/dynamic-dependent-select-box-using.html&#34; rel=&#34;nofollow&#34;&#62;http://www.9lessons.info/2010/08/dynamic-dependent-select-box-using.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;There are certainly other ways as well.  But there is nothing built in to Gravity Forms to accomplish this.  Other than Conditional Logic, which will not work with how yours is set up now (I don't think.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gmw on "Can Country be automatically set depending on value in States dropdown?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-country-be-automatically-set-depending-on-value-in-states-dropdown#post-67914</link>
			<pubDate>Wed, 25 Jul 2012 13:15:12 +0000</pubDate>
			<dc:creator>gmw</dc:creator>
			<guid isPermaLink="false">67914@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Per this post &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/display-us-states-and-canadian-provinces#post-67866&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/display-us-states-and-canadian-provinces#post-67866&#60;/a&#62;, rather than use the Advanced Fields Address group, I created individual fields so I could use a custom list for a States / Provinces dropdown that i needed. Works great! &#60;/p&#62;
&#60;p&#62;Now I'm wondering that if the user can only select a valid state/province, why am I asking him to also tell me what country he is from. By deduction I already know that. Plus I'm opening up the door to inconsistent data. The user could enter New York City, New York and then select Canada for the country. I think that my form needs to be a little more intuitive.&#60;/p&#62;
&#60;p&#62;The reason that I don't delete the country field altogether is that it is useful on &#34;List Entries&#34; screen on the WP Back-end where I can quickly get snapshot of what country my entries are from.&#60;/p&#62;
&#60;p&#62;Based on the value selected in the States / Provinces dropdown mentioned above, is there a way that I could set, via a hook, an Admin-only field (like a checkbox) that would indicate what country the user is from? Or even a hidden field?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
