<?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: Help with User add On</title>
		<link>https://legacy.forums.gravityhelp.com/topic/help-with-user-add-on</link>
		<description>Gravity Support Forums Topic: Help with User add On</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 04:40:25 +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/help-with-user-add-on" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Help with User add On"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/help-with-user-add-on#post-85462</link>
			<pubDate>Wed, 31 Oct 2012 01:39:33 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">85462@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Are you trying to populate usermeta fields in form 2?  If the user is logged in when they visit form 2, all the meta values should be available as merge tags without using any code.  I'm not following the process you're using here.  Can you please explain more about it?  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sadiq.emeran on "Help with User add On"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/help-with-user-add-on#post-85092</link>
			<pubDate>Tue, 30 Oct 2012 07:21:47 +0000</pubDate>
			<dc:creator>sadiq.emeran</dc:creator>
			<guid isPermaLink="false">85092@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;pre&#62;&#60;code&#62;[php]
// populate the field with &#38;quot;user_firstname&#38;quot; as the population parameter with the &#38;quot;first_name&#38;quot; of the current user
add_filter(&#38;#39;gform_field_value_user_firstname&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;#39;$value = populate_usermeta(\&#38;#39;first_name\&#38;#39;); return $value;&#38;#39; ));

// populate the field with &#38;quot;user_lastname&#38;quot; as the population parameter with the &#38;quot;last_name&#38;quot; of the current user
add_filter(&#38;#39;gform_field_value_user_lastname&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;#39;$value = populate_usermeta(\&#38;#39;last_name\&#38;#39;); return $value;&#38;#39; ));

// populate the field with &#38;quot;user_id&#38;quot; as the population parameter with the &#38;quot;id_number&#38;quot; of the current user
add_filter(&#38;#39;gform_field_value_user_id_number&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;#39;$value = populate_usermeta(\&#38;#39;id_number\&#38;#39;); return $value;&#38;#39; ));

add_filter(&#38;#39;gform_field_value_user_email&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;#39;$value = populate_usermeta(\&#38;#39;email\&#38;#39;); return $value;&#38;#39; ));

// this function is called by both filters and returns the requested user meta of the current user
function populate_usermeta($meta_key){
    global $current_user;
    return $current_user-&#38;gt;__get($meta_key);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Above is the code I used.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sadiq.emeran on "Help with User add On"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/help-with-user-add-on#post-84783</link>
			<pubDate>Mon, 29 Oct 2012 14:33:31 +0000</pubDate>
			<dc:creator>sadiq.emeran</dc:creator>
			<guid isPermaLink="false">84783@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Step 1&#60;br /&#62;
&#60;a href=&#34;http://communipet.co.za/register/&#34; rel=&#34;nofollow&#34;&#62;http://communipet.co.za/register/&#60;/a&#62;&#60;br /&#62;
user registers on site fills out form.&#60;br /&#62;
Step 2&#60;br /&#62;
&#60;a href=&#34;http://communipet.co.za/add-pets/&#34; rel=&#34;nofollow&#34;&#62;http://communipet.co.za/add-pets/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;User adds pets but 1st part is dynamically populated as it is filled in at registration.&#60;/p&#62;
&#60;p&#62;Any help&#60;/p&#62;
&#60;p&#62;Please&#60;/p&#62;
&#60;p&#62;I can get name and email working but not other fields.&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
Sadiq
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
