<?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 Tag: pre-populate - Recent Posts</title>
		<link>https://legacy.forums.gravityhelp.com/tags/pre-populate</link>
		<description>Gravity Support Forums Tag: pre-populate - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:19:02 +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/tags/pre-populate" 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>Aejandro on "Wordpress Custom Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/wordpress-custom-fields#post-323117</link>
			<pubDate>Fri, 14 Jun 2013 10:59:18 +0000</pubDate>
			<dc:creator>Aejandro</dc:creator>
			<guid isPermaLink="false">323117@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello? Anybody there please? =)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Aejandro on "Wordpress Custom Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/wordpress-custom-fields#post-319181</link>
			<pubDate>Wed, 12 Jun 2013 17:23:09 +0000</pubDate>
			<dc:creator>Aejandro</dc:creator>
			<guid isPermaLink="false">319181@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, here you have the link: &#60;a href=&#34;http://goo.gl/HNH7D&#34; rel=&#34;nofollow&#34;&#62;http://goo.gl/HNH7D&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The information stored in the post custom field is &#34;Precio&#34;, which value is 19.5.&#60;/p&#62;
&#60;p&#62;That custom field should populate the &#34;price&#34; field of the form.&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Populating Address field on pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populating-address-field-on-pre_render#post-290520</link>
			<pubDate>Thu, 30 May 2013 19:59:24 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">290520@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here was the dev recommendation:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
Instead of using gform_pre_render to do this, you will want to use this hook instead: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#60;/a&#62; . The inputs for the address field do not store default data like you are trying to do. You will want to set your address field to allow dynamic population and enter parameter names like in this screen shot: &#60;a href=&#34;http://grab.by/mYfi&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/mYfi&#60;/a&#62; . Then you use those parameter names with the gform_field_value hook.&#60;/p&#62;
&#60;p&#62;There is some really good documentation on dynamic population on this page which links to other examples: &#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;/p&#62;
&#60;/blockquote&#62;</description>
		</item>
		<item>
			<title>jwestbrook on "Modal contact form with pre-populated fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/modal-contact-form-with-pre-populated-fields#post-284289</link>
			<pubDate>Tue, 28 May 2013 18:14:59 +0000</pubDate>
			<dc:creator>jwestbrook</dc:creator>
			<guid isPermaLink="false">284289@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
    I've been messing around with other form plugins for a while now and I cannot get them to do what I need. I have a wordpress site that's almost ready to push live except I cannot get the following functionality to work with my current plugins...&#60;/p&#62;
&#60;p&#62;I want to load (preferably via ajax) a contact form into a modal (using colorbox or a similar jQuery plugin) and pass it custom post type data (acquired via data attribute associated with the link the user clicked on) which I would use to pre-populate the subject field.&#60;/p&#62;
&#60;p&#62;Having a quick look around the forums and site I'm under the impression I can achieve this but before I part with my money I'd like someone to confirm this is all possible.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Jack
&#60;/p&#62;</description>
		</item>
		<item>
			<title>acsnaterse on "Populating Address field on pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populating-address-field-on-pre_render#post-283320</link>
			<pubDate>Tue, 28 May 2013 09:58:07 +0000</pubDate>
			<dc:creator>acsnaterse</dc:creator>
			<guid isPermaLink="false">283320@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That means a/the solution will not be posted here?&#60;/p&#62;
&#60;p&#62;I've solved it myself now by populating the $_GET array. That works, but, of course, is not ideal solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Populating Address field on pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populating-address-field-on-pre_render#post-283292</link>
			<pubDate>Tue, 28 May 2013 09:40:59 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">283292@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Handling via priority support.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>acsnaterse on "Populating Address field on pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populating-address-field-on-pre_render#post-282747</link>
			<pubDate>Tue, 28 May 2013 05:50:03 +0000</pubDate>
			<dc:creator>acsnaterse</dc:creator>
			<guid isPermaLink="false">282747@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Somebody has a clue? I'm dealing with the same problem here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>microweb on "Populating Address field on pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populating-address-field-on-pre_render#post-273475</link>
			<pubDate>Fri, 24 May 2013 11:47:31 +0000</pubDate>
			<dc:creator>microweb</dc:creator>
			<guid isPermaLink="false">273475@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm trying to populate an address field with the billing address information from the current user's data.  I do not know what I've done wrong.  Also, if I check the box in the form to allow for dynamic population, how do I set up the hooks to get the data I want? &#60;/p&#62;
&#60;p&#62;I've created the following code:&#60;br /&#62;
&#60;code&#62;add_action(&#38;quot;gform_pre_submission_2&#38;quot;, &#38;quot;mwn_gform_pre_submission_2&#38;quot;);&#60;/code&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function mwn_gform_pre_render_2($form){
	$current_user = wp_get_current_user();
	$user_data = get_user_meta($current_user-&#38;gt;ID );
  foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field)
  	switch($field[&#38;quot;id&#38;quot;]){
		case 27:
			foreach($field[&#38;quot;inputs&#38;quot;] as &#38;amp;$input) {
				switch($input[&#38;quot;id&#38;quot;]){
						case 27.1:
							$input[&#38;quot;value&#38;quot;] = $user_data[&#38;quot;billing_address_1&#38;quot;][0];
							break;
						case 27.2:
							$input[&#38;quot;value&#38;quot;] = $user_data[&#38;quot;billing_address_2&#38;quot;][0];
							break;
						case 27.3:
							$input[&#38;quot;value&#38;quot;] = $user_data[&#38;quot;billing_city&#38;quot;][0];
							break;
						case 27.4:
							$input[&#38;quot;value&#38;quot;] = $user_data[&#38;quot;billing_state&#38;quot;][0];
							break;
						case 27.5:
							$input[&#38;quot;value&#38;quot;] = $user_data[&#38;quot;billing_postcode&#38;quot;][0];
							break;
						default:
							break;
				}
			}
			break;
		default:
			break;
	}

	return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
