<?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: Can I Pre-Populate Or Call From Buddypress Profile Data?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data</link>
		<description>Gravity Support Forums Topic: Can I Pre-Populate Or Call From Buddypress Profile Data?</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:40: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/can-i-pre-populate-or-call-from-buddypress-profile-data" rel="self" type="application/rss+xml" />

		<item>
			<title>Richard Vav on "Can I Pre-Populate Or Call From Buddypress Profile Data?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data#post-376063</link>
			<pubDate>Thu, 25 Jul 2013 08:41:33 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">376063@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you still require assistance with this please open a new &#60;a href=&#34;http://www.gravityhelp.com/request-support/&#34; rel=&#34;nofollow&#34;&#62;support ticket&#60;/a&#62; or a &#60;a href=&#34;http://www.gravityhelp.com/priority-support/&#34; rel=&#34;nofollow&#34;&#62;priority support ticket&#60;/a&#62; if you are a developer license holder. Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Daniel Foltynek on "Can I Pre-Populate Or Call From Buddypress Profile Data?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data#post-366712</link>
			<pubDate>Sun, 07 Jul 2013 16:50:19 +0000</pubDate>
			<dc:creator>Daniel Foltynek</dc:creator>
			<guid isPermaLink="false">366712@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am succesfully pre populating wordpress user meta, but I have searched all the forum and I didn't find an answer how to prepopulate buddypress profile data assuming that I don't know user id, I simply want the logged in user to have pre populate first_name and last_name from wordpress and some other fields from buddypress profile groups, is it difficult? I hope that buddypress profile fields works very similarly to user_meta, I tried many combinations from this website and nothing works for me - (the name of the field in buddypress profile is Phone - group_id=5&#38;amp;field_id=59 - this is the slug from edit profile page :&#60;br /&#62;
This is the example which doesn't work in functions.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;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;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Can you help me to get it work ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>oulab on "Can I Pre-Populate Or Call From Buddypress Profile Data?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data#post-27750</link>
			<pubDate>Tue, 14 Jun 2011 16:54:54 +0000</pubDate>
			<dc:creator>oulab</dc:creator>
			<guid isPermaLink="false">27750@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm trying pre-populate a form field with Gravity form. I'm using BuddyPress Default 1.2.7.&#60;/p&#62;
&#60;p&#62;Currently each user profile has a form. I would like to add the username of the profile to the form dynamically. This is my attempt so far from using the forum and documentation as guidance&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.pastie.org/2068805&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/2068805&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;No luck yet.&#60;/p&#62;
&#60;p&#62;These are the buddypress variables&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.buddypress.org/developer-docs/the-bp-global/&#34; rel=&#34;nofollow&#34;&#62;http://codex.buddypress.org/developer-docs/the-bp-global/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Help would be much appreciated.&#60;/p&#62;
&#60;p&#62;Thanks.&#60;/p&#62;
&#60;p&#62;Also is there a particular section i need to paste in the code in the functions.php file?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>enclave on "Can I Pre-Populate Or Call From Buddypress Profile Data?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data#post-15548</link>
			<pubDate>Thu, 06 Jan 2011 00:41:38 +0000</pubDate>
			<dc:creator>enclave</dc:creator>
			<guid isPermaLink="false">15548@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Very handy. Will be giving this a whirl
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Can I Pre-Populate Or Call From Buddypress Profile Data?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data#post-15519</link>
			<pubDate>Wed, 05 Jan 2011 17:10:14 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">15519@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Unfortunately, drop down fields can not be populated with this hook. You can, however, use the &#60;strong&#62;gform_pre_render&#60;/strong&#62; hook to do this. Try this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1432081&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1432081&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Very similar to what you're doing for single input population, but here we're creating an array is required to populate drop down fields.&#60;/p&#62;
&#60;p&#62;The example output of the code above is something like this: &#60;a href=&#34;http://grab.by/8dtR&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/8dtR&#60;/a&#62; -- I'm not sure exactly what other options you want for your drop down so I put three of the same just so you could see what multiple options would look like. Hope this helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perspective on "Can I Pre-Populate Or Call From Buddypress Profile Data?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data#post-15473</link>
			<pubDate>Wed, 05 Jan 2011 08:52:15 +0000</pubDate>
			<dc:creator>perspective</dc:creator>
			<guid isPermaLink="false">15473@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've found the problem - below is the correct code to make it work...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_filter(&#38;quot;gform_field_value_address&#38;quot;, &#38;quot;populate_address&#38;quot;);
function populate_address($value){
     global $current_user;
     get_currentuserinfo();
     return xprofile_get_field_data(&#38;#39;address&#38;#39;, $current_user-&#38;gt;ID);
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I hope this code helps other Gravity Forms users.&#60;/p&#62;
&#60;p&#62;BUT, I cannot get it to work on drop down menu fields - any ideas?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perspective on "Can I Pre-Populate Or Call From Buddypress Profile Data?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data#post-15412</link>
			<pubDate>Tue, 04 Jan 2011 15:47:28 +0000</pubDate>
			<dc:creator>perspective</dc:creator>
			<guid isPermaLink="false">15412@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;Unfortunately this still doesn't work, nor does what seems like a hundred variations I've tried before coming back to you. Any other ideas or guidance on how to implement?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Can I Pre-Populate Or Call From Buddypress Profile Data?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data#post-15165</link>
			<pubDate>Wed, 29 Dec 2010 21:13:32 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">15165@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is a quick and dirty function you can add to your functions.php that will let you get any user meta data from the BP user data table.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1416206&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1416206&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Assuming you know the user ID and field ID, you can use this to prepopulate field values like so:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

add_filter(&#38;quot;gform_field_value_email&#38;quot;, &#38;quot;populate_email&#38;quot;);
function populate_email($value){
     global $current_user;
     get_currentuserinfo();

     return get_bp_user_data($current_user-&#38;gt;ID, 3);
}

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The &#60;strong&#62;$current_user-&#38;gt;ID&#60;/strong&#62; being the current user's ID and the 3 being the field ID of the BuddyPress field you wish to get the value of. To get this field ID take a peek at the source code on the BP Profile Field Setup page and you'll see something like this: &#60;a href=&#34;http://grab.by/87B1&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/87B1&#60;/a&#62; -- the number following the &#34;field_&#34; is the ID of the field.&#60;/p&#62;
&#60;p&#62;Hope this helps!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perspective on "Can I Pre-Populate Or Call From Buddypress Profile Data?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data#post-15160</link>
			<pubDate>Wed, 29 Dec 2010 20:13:58 +0000</pubDate>
			<dc:creator>perspective</dc:creator>
			<guid isPermaLink="false">15160@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Buddypress 1.2.6 and Wordpress 3.03 - thank you in advance.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Can I Pre-Populate Or Call From Buddypress Profile Data?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-pre-populate-or-call-from-buddypress-profile-data#post-15156</link>
			<pubDate>Wed, 29 Dec 2010 18:30:46 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">15156@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What version of BuddyPress are you using?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
