<?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: saving data from forms for users</title>
		<link>https://legacy.forums.gravityhelp.com/topic/saving-data-from-forms-for-users</link>
		<description>Gravity Support Forums Topic: saving data from forms for users</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 14:14:13 +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/saving-data-from-forms-for-users" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "saving data from forms for users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-data-from-forms-for-users#post-66456</link>
			<pubDate>Mon, 16 Jul 2012 11:14:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">66456@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can we start with the basics?  What does this variable contain after your function runs?  Can you echo the value to the screen or log it or email it to your self?&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$s2comp&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;We need to see first if that is working.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>smeyer on "saving data from forms for users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-data-from-forms-for-users#post-66341</link>
			<pubDate>Sun, 15 Jul 2012 12:52:05 +0000</pubDate>
			<dc:creator>smeyer</dc:creator>
			<guid isPermaLink="false">66341@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying this code to save the form submission data to the user_meta table, but it doesn't work. Any advice?&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function set_s2_user_company($entry, $form){
	global $current_user;
	get_currentuserinfo();
	$s2comp = get_user_field (&#38;quot;Company&#38;quot;);
	if ($s2comp == &#38;#39;&#38;#39;) { update_user_option($current_user-&#38;gt;user_ID, &#38;#39;acM_s2member_custom_fields&#38;#39;, $entry[&#38;#39;6&#38;#39;]);  }
}
add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;set_s2_user_company&#38;quot;, 10, 2);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I used code from &#60;a href=&#34;http://www.0to5blog.com/creative/gravity-forms-submitting-forms-to-3rd-party-applications/&#34; rel=&#34;nofollow&#34;&#62;http://www.0to5blog.com/creative/gravity-forms-submitting-forms-to-3rd-party-applications/&#60;/a&#62; to find the ID of my &#34;Country&#34; field that I want to save into &#34;acM_s2member_custom_fields&#34; in the user_meta table.&#60;/p&#62;
&#60;p&#62;get_user_field is a function of s2member. I've used it here, so it should work:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// populate the field with &#38;quot;company&#38;quot; as the population parameter with the &#38;quot;Company&#38;quot; of the current user
function env_populate_company() {
	$s2comp = get_user_field (&#38;quot;Company&#38;quot;);
	if ($s2comp == &#38;#39;&#38;#39;) { $value = populate_usermeta(&#38;#39;Company&#38;#39;); }
	else { $value = $s2comp; }
	return $value;
}
add_filter(&#38;#39;gform_field_value_Company&#38;#39;, &#38;#39;env_populate_company&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;As for the forum post on enabling existing user to update their info, it's:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/any-update-on-the-registration-add-on-to-support-already-registered-users&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/any-update-on-the-registration-add-on-to-support-already-registered-users&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "saving data from forms for users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-data-from-forms-for-users#post-66291</link>
			<pubDate>Sat, 14 Jul 2012 21:23:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">66291@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you link to that post please?  I will try to find out for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>smeyer on "saving data from forms for users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-data-from-forms-for-users#post-66283</link>
			<pubDate>Sat, 14 Jul 2012 21:06:29 +0000</pubDate>
			<dc:creator>smeyer</dc:creator>
			<guid isPermaLink="false">66283@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I read forum posts from a year ago mentioning that the developer of the user registration add-on was going to work on creating a user profile update form, so that you could set up a gravity form for the user to edit their profile information. Where does this sit?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>smeyer on "saving data from forms for users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-data-from-forms-for-users#post-66282</link>
			<pubDate>Sat, 14 Jul 2012 21:04:30 +0000</pubDate>
			<dc:creator>smeyer</dc:creator>
			<guid isPermaLink="false">66282@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Any chance you can give me an example of what that might look like?&#60;br /&#62;
I need to save my &#34;Company&#34; custom user meta field into a user meta field named &#34;acM_s2member_custom_fields&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "saving data from forms for users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-data-from-forms-for-users#post-66281</link>
			<pubDate>Sat, 14 Jul 2012 20:54:57 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">66281@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can use any form you like to collect information and use that to update anything on the site at all.  This involves using the hooks which are built in to Gravity Forms to pre-fill the form with data you have (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#34; rel=&#34;nofollow&#34;&#62;gform_pre_render&#60;/a&#62;) and then update the data which is stored in the user profile (usermeta) or anywhere else (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;gform_after_submission&#60;/a&#62;).  It's all possible but will require some work on your part to make it happen.  It's all fairly straightforward PHP and WordPress programming.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>smeyer on "saving data from forms for users"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-data-from-forms-for-users#post-66257</link>
			<pubDate>Sat, 14 Jul 2012 12:26:21 +0000</pubDate>
			<dc:creator>smeyer</dc:creator>
			<guid isPermaLink="false">66257@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have seen articles touching on this topic, but I haven't seen my specific issue discussed or a similar one resolved so I thought I might ask...&#60;br /&#62;
I am trying to set up a user driven site that captures user information and then auto fills their information into other forms on the site.&#60;br /&#62;
I have the user registration add-on. When the user fills out the registration form, it saves fields that I can use to dynamically populate other forms. If the user didn't fill out their address when registering but enters it later in the &#34;Contact Us&#34; form, for example, is it possible to save it to their user profile? I tried to set up the contact us form as a feed for the user registration plugin, but it requires a username submission, and from what I understand from forum posts up to now, the user registration add on will only create new users; it can't be used to update user information. I found a discussion about this from a year ago on the forum. Any progress/updates?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
