<?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: Populate drop down with existing users first and last name as one option</title>
		<link>https://legacy.forums.gravityhelp.com/topic/populate-drop-down-with-existing-users-first-and-last-name-as-one-option</link>
		<description>Gravity Support Forums Topic: Populate drop down with existing users first and last name as one option</description>
		<language>en-US</language>
		<pubDate>Sun, 10 May 2026 11:56:15 +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/populate-drop-down-with-existing-users-first-and-last-name-as-one-option" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Populate drop down with existing users first and last name as one option"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-drop-down-with-existing-users-first-and-last-name-as-one-option#post-76803</link>
			<pubDate>Sat, 22 Sep 2012 00:13:54 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76803@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for posting those instructions for the benefit of all.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alsc on "Populate drop down with existing users first and last name as one option"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-drop-down-with-existing-users-first-and-last-name-as-one-option#post-76520</link>
			<pubDate>Thu, 20 Sep 2012 09:22:24 +0000</pubDate>
			<dc:creator>alsc</dc:creator>
			<guid isPermaLink="false">76520@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yeah, I'm sorry about that. I waited two weeks in here before going priority. Dana sent me:&#60;/p&#62;
&#60;p&#62;&#34;To dynamically populate your drop down with users, you need to check the option on the Advanced tab called &#34;Allow field to be populated dynamically&#34; for your drop down field. You do not provide a parameter name. You will use the gform_pre_render filter in your functions.php file. I have created an example for you which uses the WordPress function &#34;get_users()&#34; to get users. :) &#60;/p&#62;
&#60;p&#62;Take a look at the example here: &#60;a href=&#34;http://pastie.org/4751675&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4751675&#60;/a&#62; .&#60;/p&#62;
&#60;p&#62;The WordPress documentation for the get_users function can be found at &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_users&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_users&#60;/a&#62; - in case you want to add more filtering to the get_users function than what I used in the example.&#60;/p&#62;
&#60;p&#62;The documentation for the gform_pre_render function can be found at &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#60;/a&#62; . I used the examples here as my basis for building the function for populating a drop down with user information.&#34;&#60;/p&#62;
&#60;p&#62;When you set up the drop down, you will be shown display_name, which wasn't quite what I wanted. &#60;/p&#62;
&#60;p&#62;I found that I could change that when I connected the form to user registration and set the shown name to last name/first name in there.&#60;/p&#62;
&#60;p&#62;Then I have my last and first name in the drop down :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Populate drop down with existing users first and last name as one option"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-drop-down-with-existing-users-first-and-last-name-as-one-option#post-76510</link>
			<pubDate>Thu, 20 Sep 2012 09:00:48 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76510@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, please post the solution here. I did not know you started a priority support ticket.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alsc on "Populate drop down with existing users first and last name as one option"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-drop-down-with-existing-users-first-and-last-name-as-one-option#post-76243</link>
			<pubDate>Wed, 19 Sep 2012 02:57:14 +0000</pubDate>
			<dc:creator>alsc</dc:creator>
			<guid isPermaLink="false">76243@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Precisely.&#60;/p&#62;
&#60;p&#62;Dana send me some code example yesterday through priority support, which I will try when I get home. Sorry for the double posting. This one started a long time ago.&#60;/p&#62;
&#60;p&#62;Should I post the solution here if I get it to work?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Populate drop down with existing users first and last name as one option"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-drop-down-with-existing-users-first-and-last-name-as-one-option#post-76135</link>
			<pubDate>Tue, 18 Sep 2012 18:05:45 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76135@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So your drop down would look like &#34;Chris Hajer&#34; where the first name is Chris and last name is Hajer?  You want one value for both in your drop down, and every selection will be a combination of the first and last name of each registered user?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alsc on "Populate drop down with existing users first and last name as one option"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-drop-down-with-existing-users-first-and-last-name-as-one-option#post-75821</link>
			<pubDate>Mon, 17 Sep 2012 07:42:38 +0000</pubDate>
			<dc:creator>alsc</dc:creator>
			<guid isPermaLink="false">75821@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm looking at:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Dynamically_Populating_the_Post_Author&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Dynamically_Populating_the_Post_Author&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Allow_field_to_be_populated_dynamically&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Allow_field_to_be_populated_dynamically&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and I still can't figure out how to populate a drop down with first name and last name of registered users in wordpress.&#60;/p&#62;
&#60;p&#62;Any hints?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alsc on "Populate drop down with existing users first and last name as one option"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-drop-down-with-existing-users-first-and-last-name-as-one-option#post-72330</link>
			<pubDate>Thu, 23 Aug 2012 14:40:33 +0000</pubDate>
			<dc:creator>alsc</dc:creator>
			<guid isPermaLink="false">72330@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm looking for a way populate a drop down field with existing users first and last name, so other users can make a selection based on that info.&#60;/p&#62;
&#60;p&#62;I am in a dance association and I am working on an online registration form. To balance classes (even number of men / women), I let members sign up one at a time - even though they want to dance together as a couple.&#60;/p&#62;
&#60;p&#62;The idea is that (for example) the man sign up first. Then I create a user for him. Then the woman should sign up and in one drop down (partner info) be able to see all created users (first and last name) and select her partner.&#60;/p&#62;
&#60;p&#62;How do I do that?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
