<?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: Populating Address Fields from an Array based on Drop-down value</title>
		<link>https://legacy.forums.gravityhelp.com/topic/populating-address-fields-from-an-array-based-on-drop-down-value</link>
		<description>Gravity Support Forums Topic: Populating Address Fields from an Array based on Drop-down value</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 09:13:30 +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/populating-address-fields-from-an-array-based-on-drop-down-value" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Populating Address Fields from an Array based on Drop-down value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populating-address-fields-from-an-array-based-on-drop-down-value#post-67989</link>
			<pubDate>Wed, 25 Jul 2012 18:39:49 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">67989@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You could do this with conditional logic, but that seems hugely wasteful and hard to maintain.&#60;/p&#62;
&#60;p&#62;You could do this with jQuery, so that when the first drop down is selected, the address for that location is filled in.&#60;/p&#62;
&#60;p&#62;There are a couple solutions and discussions of this online:&#60;br /&#62;
&#60;a href=&#34;http://stackoverflow.com/questions/558445/dynamically-fill-in-form-values-with-jquery&#34; rel=&#34;nofollow&#34;&#62;http://stackoverflow.com/questions/558445/dynamically-fill-in-form-values-with-jquery&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://forum.jquery.com/topic/populate-select-form-field-via-jquery&#34; rel=&#34;nofollow&#34;&#62;http://forum.jquery.com/topic/populate-select-form-field-via-jquery&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.keyframesandcode.com/resources/javascript/jQuery/demos/populate-demo.html&#34; rel=&#34;nofollow&#34;&#62;http://www.keyframesandcode.com/resources/javascript/jQuery/demos/populate-demo.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I would go with jQuery. It's up to you to determine where to store and how to retrieve the addresses.  But the process for populating the form fields with retrieved address information can be found online, or in those links.  If you need more help with this customization, please let us know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>johnpindy on "Populating Address Fields from an Array based on Drop-down value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populating-address-fields-from-an-array-based-on-drop-down-value#post-67964</link>
			<pubDate>Wed, 25 Jul 2012 16:35:59 +0000</pubDate>
			<dc:creator>johnpindy</dc:creator>
			<guid isPermaLink="false">67964@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi. New to Gravity and looking for a bit of advice.   Embarrassing to submit such a nube query. &#60;/p&#62;
&#60;p&#62;I'm putting together a simple order form which you can see here:&#60;br /&#62;
&#60;a href=&#34;http://ec2-107-21-104-54.compute-1.amazonaws.com/wordpress/order/&#34; rel=&#34;nofollow&#34;&#62;http://ec2-107-21-104-54.compute-1.amazonaws.com/wordpress/order/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;When the user selects a &#34;Location&#34; from the drop down, I want to pre-populate the  Address field values from a list of addresses that are keyed by Location.  Here's a snippet of the file:  &#60;a href=&#34;http://pastie.org/4332286&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4332286&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The user is free to change the pre-populated Address field values.&#60;/p&#62;
&#60;p&#62;What would be a good way to handle this?   The address values will rarely change, so I'm not really worried about managing those... although I could load them in a custom post type or other table.    I'm really just looking for your quick take on how to handle this.&#60;/p&#62;
&#60;p&#62;Thanks in advance,
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
