<?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: Dropdown of users</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dropdown-of-users</link>
		<description>Gravity Support Forums Topic: Dropdown of users</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 00:21:04 +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/dropdown-of-users" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Dropdown of users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-of-users#post-10342</link>
			<pubDate>Fri, 24 Sep 2010 20:26:10 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">10342@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No problem, glad you got it working... keep watching as we will be launching an expanded documentation area soon that includes more in depth developer documentation for the available hooks and filters.  The content itself is done we just have to integrate the WikiMedia install into the support site and we are currently busy with Gravity Forms development which comes first.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RobertDrake on "Dropdown of users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-of-users#post-10340</link>
			<pubDate>Fri, 24 Sep 2010 20:10:22 +0000</pubDate>
			<dc:creator>RobertDrake</dc:creator>
			<guid isPermaLink="false">10340@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've pretty much got it working.  For anyone trying to do something similar: &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_render_1&#38;quot;, populate_dropdown);

function populate_dropdown($form){

global $wpdb;
$wp_user_search = $wpdb-&#38;gt;get_results(&#38;quot;SELECT ID, display_name FROM $wpdb-&#38;gt;users ORDER BY ID&#38;quot;);

//Creating drop down item array.
$items = array();

//Adding initial blank value.
$items[] = array(&#38;quot;text&#38;quot; =&#38;gt; &#38;quot;&#38;quot;, &#38;quot;value&#38;quot; =&#38;gt; &#38;quot;&#38;quot;);

 //Adding post titles to the items array
foreach ( $wp_user_search as $userid )
	$items[] = array(&#38;quot;value&#38;quot; =&#38;gt; $userid-&#38;gt;display_name, &#38;quot;text&#38;quot; =&#38;gt; $userid-&#38;gt;display_name);

 //Adding items to field id 8. field_1_2
    foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field)

        if($field[&#38;quot;id&#38;quot;] == 3){
            $field[&#38;quot;type&#38;quot;] = &#38;quot;select&#38;quot;;
            $field[&#38;quot;choices&#38;quot;] = $items;

        }

    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;One thing that's really cool - on the text field I set the default value to be the currently logged in user (me).  When I repopulate the field is still sets my user to be the default value (aka it finds me in the list.)  &#60;/p&#62;
&#60;p&#62;Very cool stuff and excellent support.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Dropdown of users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-of-users#post-10338</link>
			<pubDate>Fri, 24 Sep 2010 19:31:57 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">10338@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;See this thread, there is a lot of discussion on this thread regarding pre-populating a drop down dynamically... &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forum.gravityhelp.com/topic/automatically-populate-a-dropdown-with-post-titles&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/automatically-populate-a-dropdown-with-post-titles&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RobertDrake on "Dropdown of users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-of-users#post-10337</link>
			<pubDate>Fri, 24 Sep 2010 19:25:27 +0000</pubDate>
			<dc:creator>RobertDrake</dc:creator>
			<guid isPermaLink="false">10337@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Better than none, but worse than perfect?  I'm familiar with wordpress hooks (I've done plugin development before, but nothing especially credential impressive.)&#60;/p&#62;
&#60;p&#62;I've been looking at: &#60;a href=&#34;http://www.dynamicguru.com/php/how-to-list-all-registered-users-on-your-wordpress-site/&#34; rel=&#34;nofollow&#34;&#62;http://www.dynamicguru.com/php/how-to-list-all-registered-users-on-your-wordpress-site/&#60;/a&#62; which has&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$all_users_id = $wpdb-&#38;gt;get_col( $wpdb-&#38;gt;prepare(
        &#38;quot;SELECT $wpdb-&#38;gt;users.ID FROM $wpdb-&#38;gt;users ORDER BY %s ASC&#38;quot;
        , $sort ));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;which seems to be in the direction of what I might need?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Dropdown of users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-of-users#post-10335</link>
			<pubDate>Fri, 24 Sep 2010 19:17:43 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">10335@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes this is possible, however you would have to know PHP and WordPress development and then a hook to dynamically change the drop down.  How advanced are your PHP skills?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RobertDrake on "Dropdown of users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dropdown-of-users#post-10333</link>
			<pubDate>Fri, 24 Sep 2010 18:59:43 +0000</pubDate>
			<dc:creator>RobertDrake</dc:creator>
			<guid isPermaLink="false">10333@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm setting up something like an intranet and I'm hoping to have a gravity form that could be used similar to a contact user form.  I'm stuck on how to create a dropdown that is pre-filled in with registered users (specifically, subscriber users.)  Is this functionality possible?&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
