<?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: log in &#38; values saved for each user</title>
		<link>https://legacy.forums.gravityhelp.com/topic/log-in-values-saved-for-each-user</link>
		<description>Gravity Support Forums Topic: log in &amp; values saved for each user</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 04:35:36 +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/log-in-values-saved-for-each-user" rel="self" type="application/rss+xml" />

		<item>
			<title>Lee Hord on "log in &#38; values saved for each user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/log-in-values-saved-for-each-user#post-29205</link>
			<pubDate>Wed, 06 Jul 2011 10:58:49 +0000</pubDate>
			<dc:creator>Lee Hord</dc:creator>
			<guid isPermaLink="false">29205@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I thought I'd post this as I've seen many posts on the forum about this very subject.  I too had a similar requirement and this is how I solved it.  May not be the most elegant piece of code ever written but it certainly does the job.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission_87&#38;quot;, &#38;quot;my_update_user_meta&#38;quot;, 10, 2);
function my_update_user_meta( $entry, $form ) {
	global $current_user;
		   get_currentuserinfo();
		   $user_id = $current_user-&#38;gt;ID;

	update_user_meta($user_id, &#38;#39;ouc&#38;#39;, $entry[15]);

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Obviously you would need to change form and entry id's to suit.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "log in &#38; values saved for each user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/log-in-values-saved-for-each-user#post-28251</link>
			<pubDate>Tue, 21 Jun 2011 12:24:47 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28251@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is a list of WordPress developers with Gravity Forms experience:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wpcandy.com/pros/experienced/with-gravity-forms&#34; rel=&#34;nofollow&#34;&#62;http://wpcandy.com/pros/experienced/with-gravity-forms&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Don't be scared off by the project prices on that page, those are typically for full web sites and not smaller projects or customization work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mattar12 on "log in &#38; values saved for each user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/log-in-values-saved-for-each-user#post-28218</link>
			<pubDate>Tue, 21 Jun 2011 00:31:41 +0000</pubDate>
			<dc:creator>mattar12</dc:creator>
			<guid isPermaLink="false">28218@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;hmm...I'm pretty sure this is over my head...anyone for hire?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "log in &#38; values saved for each user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/log-in-values-saved-for-each-user#post-28144</link>
			<pubDate>Sun, 19 Jun 2011 14:27:32 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">28144@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Matt,&#60;/p&#62;
&#60;p&#62;This could be accomplished using the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_post_submission&#34; rel=&#34;nofollow&#34;&#62;gform_post_submission&#60;/a&#62; and referencing &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/right-parameter-names-to-pre-populate-the-names-fields#post-14044&#34; rel=&#34;nofollow&#34;&#62;this post&#60;/a&#62; for populating fields from the user meta.  Be aware, that this will require some basic understanding of PHP and being comfortable with some WP functions.&#60;/p&#62;
&#60;p&#62;When the form is submitted, you would update a group of user meta fields you designate to store the submitted values from the form. This is accomplished with the gform_post_submission hook. This hook is passed all of the submitted value in the &#60;strong&#62;$entry&#60;/strong&#62; object. You would match the field ID of each field with it's respective user meta field. For example, if field ID 2 is supposed to store the user's secondary email address (just an example piece of data you may be storing) you could save that value to the user meta like so:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
update_user_meta($user_id, &#38;#39;secondary_email&#38;#39;, $entry[2]);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;For more information on the update_user_meta function, &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/update_user_meta&#34; rel=&#34;nofollow&#34;&#62;read here&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;That part covers how to save the values consistently for each user. To pre-populate any piece of user meta, refer to the post linked in the first paragraph above.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mattar12 on "log in &#38; values saved for each user"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/log-in-values-saved-for-each-user#post-28131</link>
			<pubDate>Sun, 19 Jun 2011 10:39:36 +0000</pubDate>
			<dc:creator>mattar12</dc:creator>
			<guid isPermaLink="false">28131@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm sure this would have to be done in conjunction with other programing/plugins, but I'm wanting to have users log into my site to fill out a data collection form annually. I'd like for their answers from last year to automatically populate when they log in and they can go in at any time and update their answers. &#60;/p&#62;
&#60;p&#62;Has anyone had any success doing something like this? what is the best way to approach this?&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Matt
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
