<?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: Using User Registration Dynamic Drop Downs, capture one value from multiple list</title>
		<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list</link>
		<description>Gravity Support Forums Topic: Using User Registration Dynamic Drop Downs, capture one value from multiple list</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:11:12 +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/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Using User Registration Dynamic Drop Downs, capture one value from multiple list"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list#post-112532</link>
			<pubDate>Wed, 02 Jan 2013 17:48:37 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">112532@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>malingo on "Using User Registration Dynamic Drop Downs, capture one value from multiple list"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list#post-112478</link>
			<pubDate>Wed, 02 Jan 2013 15:43:18 +0000</pubDate>
			<dc:creator>malingo</dc:creator>
			<guid isPermaLink="false">112478@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That worked beautifully.  Thanks Chris.  I created two and added them to my functions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

add_filter(&#38;quot;gform_pre_submission_filter&#38;quot;, &#38;quot;combine_provstate&#38;quot;);
function combine_provstate($form){

  //concatenate province fields
$combined = $_POST[&#38;#39;input_8&#38;#39;]
          . $_POST[&#38;#39;input_9&#38;#39;];
$_POST[&#38;#39;input_88&#38;#39;] = $combined;

	  return $form;

}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

add_filter(&#38;quot;gform_pre_submission_filter&#38;quot;, &#38;quot;combine_city&#38;quot;);
function combine_city($form){

  //concatenate city fields
$combined = $_POST[&#38;#39;input_21&#38;#39;]
          . $_POST[&#38;#39;input_22&#38;#39;]
	  . $_POST[&#38;#39;input_23&#38;#39;]
	  . $_POST[&#38;#39;input_24&#38;#39;]
	  . $_POST[&#38;#39;input_25&#38;#39;]
	  . $_POST[&#38;#39;input_28&#38;#39;]
	  . $_POST[&#38;#39;input_29&#38;#39;]
	  . $_POST[&#38;#39;input_30&#38;#39;]
	  . $_POST[&#38;#39;input_31&#38;#39;]
	  . $_POST[&#38;#39;input_32&#38;#39;]
	  . $_POST[&#38;#39;input_33&#38;#39;]
	  . $_POST[&#38;#39;input_34&#38;#39;]
	  . $_POST[&#38;#39;input_35&#38;#39;]
	  . $_POST[&#38;#39;input_36&#38;#39;]
	  . $_POST[&#38;#39;input_37&#38;#39;]
	  . $_POST[&#38;#39;input_38&#38;#39;]
	  . $_POST[&#38;#39;input_39&#38;#39;]
	  . $_POST[&#38;#39;input_40&#38;#39;]
	  . $_POST[&#38;#39;input_41&#38;#39;]
	  . $_POST[&#38;#39;input_42&#38;#39;]
	  . $_POST[&#38;#39;input_43&#38;#39;]
	  . $_POST[&#38;#39;input_44&#38;#39;]
	  . $_POST[&#38;#39;input_45&#38;#39;]
	  . $_POST[&#38;#39;input_46&#38;#39;]
	  . $_POST[&#38;#39;input_47&#38;#39;]
	  . $_POST[&#38;#39;input_48&#38;#39;]
	  . $_POST[&#38;#39;input_49&#38;#39;]
	  . $_POST[&#38;#39;input_50&#38;#39;]
	  . $_POST[&#38;#39;input_51&#38;#39;]
	  . $_POST[&#38;#39;input_52&#38;#39;]
	  . $_POST[&#38;#39;input_53&#38;#39;]
	  . $_POST[&#38;#39;input_54&#38;#39;]
	  . $_POST[&#38;#39;input_55&#38;#39;]
	  . $_POST[&#38;#39;input_56&#38;#39;]
	  . $_POST[&#38;#39;input_57&#38;#39;]
	  . $_POST[&#38;#39;input_58&#38;#39;]
	  . $_POST[&#38;#39;input_59&#38;#39;]
	  . $_POST[&#38;#39;input_60&#38;#39;]
	  . $_POST[&#38;#39;input_61&#38;#39;]
	  . $_POST[&#38;#39;input_62&#38;#39;]
	  . $_POST[&#38;#39;input_63&#38;#39;]
	  . $_POST[&#38;#39;input_64&#38;#39;]
	  . $_POST[&#38;#39;input_65&#38;#39;]
	  . $_POST[&#38;#39;input_66&#38;#39;]
	  . $_POST[&#38;#39;input_67&#38;#39;]
	  . $_POST[&#38;#39;input_68&#38;#39;]
	  . $_POST[&#38;#39;input_69&#38;#39;]
	  . $_POST[&#38;#39;input_70&#38;#39;]
	  . $_POST[&#38;#39;input_71&#38;#39;]
	  . $_POST[&#38;#39;input_72&#38;#39;]
	  . $_POST[&#38;#39;input_73&#38;#39;]
	  . $_POST[&#38;#39;input_74&#38;#39;]
	  . $_POST[&#38;#39;input_75&#38;#39;]
	  . $_POST[&#38;#39;input_76&#38;#39;]
	  . $_POST[&#38;#39;input_77&#38;#39;]
	  . $_POST[&#38;#39;input_78&#38;#39;]
	  . $_POST[&#38;#39;input_79&#38;#39;]
	  . $_POST[&#38;#39;input_80&#38;#39;]
	  . $_POST[&#38;#39;input_81&#38;#39;]
	  . $_POST[&#38;#39;input_82&#38;#39;];

$_POST[&#38;#39;input_89&#38;#39;] = $combined;

	  return $form;

}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now I can map these to my user meta.  Thanks a ton.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Using User Registration Dynamic Drop Downs, capture one value from multiple list"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list#post-112101</link>
			<pubDate>Tue, 01 Jan 2013 19:02:22 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">112101@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I logged in to your site and I see now what you're trying to do.  You can't use the merge tags like that because those selections have not yet been made.  You can't set a default value for a field when the form is rendered, if the selection you want stored there has not yet been made.&#60;/p&#62;
&#60;p&#62;I would use the gform_pre_submission_filter to read the values which were submitted, then concatenate them, just like you're doing in your hidden field, and store that value.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The line which concatenates all the values into one line is going to look something like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
$combined = &#38;quot;Country: &#38;quot;        . $_POST[&#38;#39;input_7&#38;#39;]
          . &#38;quot;State: &#38;quot;          . $_POST[&#38;#39;input_9&#38;#39;]
          . &#38;quot;Province: &#38;quot;       . $_POST[&#38;#39;input_8&#38;#39;]
          . &#38;quot;City: &#38;quot;           . $_POST[&#38;#39;input_21&#38;#39;]
          . $_POST[&#38;#39;input_22&#38;#39;] . $_POST[&#38;#39;input_23&#38;#39;]
          . $_POST[&#38;#39;input_24&#38;#39;] . $_POST[&#38;#39;input_25&#38;#39;]
          . $_POST[&#38;#39;input_26&#38;#39;] . $_POST[&#38;#39;input_27&#38;#39;]
          // etc, through field input_82
$_POST[&#38;#39;input_88&#38;#39;] = $combined;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Basically, line 01 will just string together all the values submitted for Country, State, Province and City.  Most of the cities will be empty, since they were not selected, so you are just concatenating empty strings.  Eventually, the one selection will be added to the string.&#60;/p&#62;
&#60;p&#62;Then, on line 09, you assign this new combined string to the ID of the hidden field (it was field 88 in your form copy.)&#60;/p&#62;
&#60;p&#62;Let me know if that works for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>malingo on "Using User Registration Dynamic Drop Downs, capture one value from multiple list"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list#post-110020</link>
			<pubDate>Fri, 28 Dec 2012 18:40:39 +0000</pubDate>
			<dc:creator>malingo</dc:creator>
			<guid isPermaLink="false">110020@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It sounds like what I need to do is insert a &#34;hook&#34; into the paramater values of a dynamically populated hidden field, and nest it in my functions.php.  However I don't have the foggiest of how to create that hook.  Essentially it would need to add all of the values together for a series of fields so that the resulting value is the selected value of those fields, as all of them default to blank with the exception of the one that has had a value inputted.  For example, my &#34;City&#34; fields (there are about 70 of them) which dynamically appear when the proper province/state is selected.  All have default &#34;blank&#34; values, so a hook that adds up all of their values and offers the result in the hidden field would only show the one value selected from the one city field dynamically available, allowing me to map that hidden field to the user &#34;city&#34; meta field.  Can anyone possibly point me in the right direction?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>malingo on "Using User Registration Dynamic Drop Downs, capture one value from multiple list"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list#post-104971</link>
			<pubDate>Thu, 20 Dec 2012 12:23:18 +0000</pubDate>
			<dc:creator>malingo</dc:creator>
			<guid isPermaLink="false">104971@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Using User Registration Dynamic Drop Downs, capture one value from multiple list"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list#post-104889</link>
			<pubDate>Thu, 20 Dec 2012 08:03:53 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">104889@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've put all the pieces together now.  I have your email associated with this topic and will take a look at it today.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>malingo on "Using User Registration Dynamic Drop Downs, capture one value from multiple list"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list#post-104631</link>
			<pubDate>Wed, 19 Dec 2012 17:26:29 +0000</pubDate>
			<dc:creator>malingo</dc:creator>
			<guid isPermaLink="false">104631@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi I did, but you haven't replied to me yet.  Just want to make sure you got the e-mail, and that the exported form was OK.  You did mention that you weren't sure which topic it was for, but I emailed you the info.  Can you confirm that you have everything you need?  Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Using User Registration Dynamic Drop Downs, capture one value from multiple list"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list#post-101080</link>
			<pubDate>Tue, 11 Dec 2012 00:40:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">101080@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I see your form online now and I see how it works.  Can you export the form that provides that functionality and email it to me at &#60;a href=&#34;mailto:chris@rocketgenius.com&#34;&#62;chris@rocketgenius.com&#60;/a&#62; please?&#60;/p&#62;
&#60;p&#62;The form export is under Forms &#38;gt; Import/Export &#38;gt; then the top center menu item &#34;Export Forms&#34;.  When done correctly you will have a file with an XML extension.  Please attach that to an email and send it to &#60;a href=&#34;mailto:chris@rocketgenius.com&#34;&#62;chris@rocketgenius.com&#60;/a&#62; - thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>malingo on "Using User Registration Dynamic Drop Downs, capture one value from multiple list"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list#post-100992</link>
			<pubDate>Mon, 10 Dec 2012 17:27:47 +0000</pubDate>
			<dc:creator>malingo</dc:creator>
			<guid isPermaLink="false">100992@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well I can't seem to get the registration form to post to my site.  I'm using &#34;Buddyboss&#34; as a theme and it looks like the &#34;registration.php&#34; for buddyboss is preventing my gravity form from turning up.  &#60;/p&#62;
&#60;p&#62;So I've posted it to another page.  (&#60;a href=&#34;http://sunasocial.com/test-for-form/&#34; rel=&#34;nofollow&#34;&#62;http://sunasocial.com/test-for-form/&#60;/a&#62;) &#60;/p&#62;
&#60;p&#62;I'll post a seperate topic for the buddyboss registration issue.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>malingo on "Using User Registration Dynamic Drop Downs, capture one value from multiple list"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-user-registration-dynamic-drop-downs-capture-one-value-from-multiple-list#post-100975</link>
			<pubDate>Mon, 10 Dec 2012 16:32:21 +0000</pubDate>
			<dc:creator>malingo</dc:creator>
			<guid isPermaLink="false">100975@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sure I'll post a sample.  Haven't activated the user registration form yet because I am trying to figure this part out.  Essentially trying to take my 70 fields and merge them into 3.  Country, Province and City.  Instead of the existing conditionally driven logic fields Country, Province, State, City AB, City BC, City SK e.t.c.......&#60;/p&#62;
&#60;p&#62;So what I think I want to do is create one hidden field for province or state - meaning that there is ONE field I can use that takes the value from the conditional Province Or State fields - and the same for city.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
