<?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: pass data to form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form</link>
		<description>Gravity Support Forums Topic: pass data to form</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:34:59 +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/pass-data-to-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "pass data to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form#post-3504</link>
			<pubDate>Fri, 19 Feb 2010 14:50:14 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">3504@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, you can pass data to pre-populate a field using the query string.&#60;/p&#62;
&#60;p&#62;You need to turn on dynamic data population for each field you want to do this with, and then give it a parameter name when you do so.&#60;/p&#62;
&#60;p&#62;That parameter name is then what you use int he query string to pass the data to the form.&#60;/p&#62;
&#60;p&#62;So if you have a field for email, you can edit the advanced settings for that field and turn on dynamic data population and then give that field a parameter name of email.&#60;/p&#62;
&#60;p&#62;Then when loading the page with the form on it you would pass ?email=VALUE and the field would be pre-populated using that value.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>slee on "pass data to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form#post-3503</link>
			<pubDate>Fri, 19 Feb 2010 14:24:59 +0000</pubDate>
			<dc:creator>slee</dc:creator>
			<guid isPermaLink="false">3503@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;sorry to hijack this thread again but i thought my question is relative to this.&#60;/p&#62;
&#60;p&#62;Is it possible for me to create a link with a query in it to pass the text to a gf form?&#60;/p&#62;
&#60;p&#62;sor for example the url would be &#60;a href=&#34;http://www.domain.com/contactpage.htm?pass=datatpass&#34; rel=&#34;nofollow&#34;&#62;http://www.domain.com/contactpage.htm?pass=datatpass&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;then 'datatopass' is input into the form automatically&#60;/p&#62;
&#60;p&#62;is this possible?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "pass data to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form#post-1285</link>
			<pubDate>Mon, 02 Nov 2009 00:28:44 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1285@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;alexinfinity,&#60;br /&#62;
To populate other user related fields, replace the following line:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
return $userdata-&#38;gt;user_login;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;with one of the following:&#60;/p&#62;
&#60;p&#62;    1- to populate field with display name&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
 return $userdata-&#38;gt;display_name;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;    2- to populate field with email&#60;br /&#62;
    &#60;code&#62;&#60;br /&#62;
return $userdata-&#38;gt;user_email;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;    3- to populate field with url&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
    return $userdata-&#38;gt;user_url;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;   4- to populate field with status:&#60;br /&#62;
    &#60;code&#62;&#60;br /&#62;
return $userdata-&#38;gt;user_status;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "pass data to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form#post-1284</link>
			<pubDate>Mon, 02 Nov 2009 00:24:50 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1284@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;alexinfiniti,&#60;br /&#62;
I will give you instructions to populate a field with the WP username.&#60;br /&#62;
You will need to repeat it for each field you want to populate (i.e. First name, Last name, email, etc)&#60;/p&#62;
&#60;p&#62;1- Add the Username field to your form&#60;br /&#62;
a- Allow it to be populated dynamically (advanced tab)&#60;br /&#62;
b- Type &#34;username&#34; in the &#34;parameter name&#34; text field&#60;/p&#62;
&#60;p&#62;2- Add the following code snippet to your template's function.php file&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
add_filter('gform_field_value_username', 'populate_username');&#60;br /&#62;
function populate_username(){&#60;br /&#62;
    global $userdata;&#60;br /&#62;
//populating field with the username&#60;br /&#62;
    return $userdata-&#38;gt;user_login;&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "pass data to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form#post-1283</link>
			<pubDate>Mon, 02 Nov 2009 00:12:27 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1283@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Next year,&#60;/p&#62;
&#60;p&#62;Use the following code snipped to populate a field with a post custom field&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
add_filter('gform_field_value_postcustom', 'populate_postcustom');&#60;br /&#62;
function populate_postcustom(){&#60;br /&#62;
    global $post;&#60;br /&#62;
    return get_post_meta($post-&#38;gt;ID, &#34;my_custom_field&#34;, true);&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Note: Replace &#34;my_custom_field&#34; with your custom field name and &#34;postcustom&#34; with your field's parameter name
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alexinfiniti on "pass data to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form#post-1276</link>
			<pubDate>Sat, 31 Oct 2009 20:52:16 +0000</pubDate>
			<dc:creator>alexinfiniti</dc:creator>
			<guid isPermaLink="false">1276@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I want a member of my site to login, and once they visit  the contact form i want the fields to automatically populate themselves using the information in their profile. These are the same fields in all wordpress signup pages. Can someone help me out? &#60;/p&#62;
&#60;p&#62;:D
&#60;/p&#62;</description>
		</item>
		<item>
			<title>next year on "pass data to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form#post-1275</link>
			<pubDate>Sat, 31 Oct 2009 17:01:10 +0000</pubDate>
			<dc:creator>next year</dc:creator>
			<guid isPermaLink="false">1275@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Now that I have added title to the data field. How do I add 'custom fields' in post to the data field in gravity forms.&#60;/p&#62;
&#60;p&#62;For example, when I'm creating new post, I have set 'custom fields' price in the post. How do I add 'price' field to the data field in gravity forms?&#60;/p&#62;
&#60;p&#62;Please help. Let me know.&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "pass data to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form#post-1234</link>
			<pubDate>Tue, 27 Oct 2009 20:20:37 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">1234@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Cool, good to hear you got it working!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>next year on "pass data to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form#post-1231</link>
			<pubDate>Tue, 27 Oct 2009 19:10:54 +0000</pubDate>
			<dc:creator>next year</dc:creator>
			<guid isPermaLink="false">1231@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks alot. It works now. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>next year on "pass data to form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-data-to-form#post-1230</link>
			<pubDate>Tue, 27 Oct 2009 18:47:34 +0000</pubDate>
			<dc:creator>next year</dc:creator>
			<guid isPermaLink="false">1230@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;WIll try it &#60;/p&#62;
&#60;p&#62;Parse error: syntax error, unexpected ')' in /home/domain/public_html/wp-content/themes/mythemes/functions.php on line 48&#60;/p&#62;
&#60;p&#62;It should be&#60;/p&#62;
&#60;p&#62;add_filter('gform_field_value_posttitle', 'populate_post_title');&#60;br /&#62;
function populate_post_title(){&#60;br /&#62;
global $post;&#60;br /&#62;
return ($post-&#38;gt;post_title);&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
