<?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: Dynamically populating BuddyPress Profile fields</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-buddypress-profile-fields</link>
		<description>Gravity Support Forums Topic: Dynamically populating BuddyPress Profile fields</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:04:28 +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/dynamically-populating-buddypress-profile-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>Daniel Foltynek on "Dynamically populating BuddyPress Profile fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-buddypress-profile-fields#post-373700</link>
			<pubDate>Wed, 10 Jul 2013 14:36:47 +0000</pubDate>
			<dc:creator>Daniel Foltynek</dc:creator>
			<guid isPermaLink="false">373700@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David, thank you very much for your help, your snippet I will use for my future issues, I got that working with another BP code now:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_city&#38;quot;, &#38;quot;populate_city&#38;quot;);
function populate_city($value){
     global $current_user;
     get_currentuserinfo();
     return xprofile_get_field_data(&#38;#39;city&#38;#39;, $current_user-&#38;gt;ID);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This code with &#34;xprofile_get_field_data&#34; and parameter= city works, now I will also search for drop down solution, thanks again and you can mark as &#34;RESOLVED&#34; this thread.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Dynamically populating BuddyPress Profile fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-buddypress-profile-fields#post-373561</link>
			<pubDate>Wed, 10 Jul 2013 13:33:38 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">373561@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Assuming you have the parameter of the field set to phone, then you should be able to swap out:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$phone = bp_profile_field_data( array(&#38;#39;user_id&#38;#39;=&#38;gt;$current_user_id,&#38;#39;field&#38;#39;=&#38;gt;&#38;#39;phone&#38;#39; ));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;for&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$phone = &#38;quot;(555) 555-0123&#38;quot;;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Daniel Foltynek on "Dynamically populating BuddyPress Profile fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-buddypress-profile-fields#post-373509</link>
			<pubDate>Wed, 10 Jul 2013 13:06:06 +0000</pubDate>
			<dc:creator>Daniel Foltynek</dc:creator>
			<guid isPermaLink="false">373509@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Dave I would love to do that, but honestly my PHP knowledge is very bad so I don't know exactly how: &#34;...to force a phone to have a value &#34;test&#34; (the code). Can you help me to give me that code and I will immediately try it?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Dynamically populating BuddyPress Profile fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-buddypress-profile-fields#post-373484</link>
			<pubDate>Wed, 10 Jul 2013 12:52:46 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">373484@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Daniel, can you try what I asked tatertot to do please and see what happens?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Daniel Foltynek on "Dynamically populating BuddyPress Profile fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-buddypress-profile-fields#post-373471</link>
			<pubDate>Wed, 10 Jul 2013 12:47:05 +0000</pubDate>
			<dc:creator>Daniel Foltynek</dc:creator>
			<guid isPermaLink="false">373471@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@tatertot did you make it work? , I have the same problem pre populate buddypress profile fields and your code doesn't work for me too:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//Buddypress prepolute phone
    add_filter(&#38;quot;form_field_value_phone&#38;quot;, &#38;quot;populate_phone&#38;quot;);
    function populate_phone() {
            $current_user = wp_get_current_user();
            $current_user_id = $current_user-&#38;gt;ID;
            $phone = bp_profile_field_data( array(&#38;#39;user_id&#38;#39;=&#38;gt;$current_user_id,&#38;#39;field&#38;#39;=&#38;gt;&#38;#39;phone&#38;#39; ));
            return $phone;
    }&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Dynamically populating BuddyPress Profile fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-buddypress-profile-fields#post-281115</link>
			<pubDate>Mon, 27 May 2013 13:42:36 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">281115@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you force $ambassadorhotel to have a value, say &#34;Test&#34; and see if it populates properly? If so, then maybe there isn't a value being passed to that variable from your BP code. If it doesn't work, then something is configured wrong, and we'd have to figure out what.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tatertot on "Dynamically populating BuddyPress Profile fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-buddypress-profile-fields#post-281105</link>
			<pubDate>Mon, 27 May 2013 13:29:28 +0000</pubDate>
			<dc:creator>tatertot</dc:creator>
			<guid isPermaLink="false">281105@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the quick reply David. I've tried that and it still does not populate.  Any other ideas?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Dynamically populating BuddyPress Profile fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-buddypress-profile-fields#post-281060</link>
			<pubDate>Mon, 27 May 2013 12:59:56 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">281060@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Parameter should be ambassador_hotel.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tatertot on "Dynamically populating BuddyPress Profile fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-buddypress-profile-fields#post-281054</link>
			<pubDate>Mon, 27 May 2013 12:54:14 +0000</pubDate>
			<dc:creator>tatertot</dc:creator>
			<guid isPermaLink="false">281054@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to pre-populate a form with a few BuddyPress fields using the add_filter function.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastebin.com/i0nUxaEg&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/i0nUxaEg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I can return the value fine on a page, but can not have it populate the GravityForm.   Allow field to be populated dynamically is checked and parameter is populate_hotel.&#60;/p&#62;
&#60;p&#62;Am I missing something?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
