<?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: Populate Field From Previous Field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/populate-field-from-previous-field</link>
		<description>Gravity Support Forums Topic: Populate Field From Previous Field</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 19:58:28 +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/populate-field-from-previous-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Populate Field From Previous Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-field-from-previous-field#post-49722</link>
			<pubDate>Fri, 17 Feb 2012 16:58:16 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">49722@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The code that @wsnider28 posted above has comments in the code that explain where you place your form id and where you place your field id's, etc.  Be sure to review the comments in that code and it should help you learn what is going on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>marketingprism on "Populate Field From Previous Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-field-from-previous-field#post-49688</link>
			<pubDate>Fri, 17 Feb 2012 10:02:23 +0000</pubDate>
			<dc:creator>marketingprism</dc:creator>
			<guid isPermaLink="false">49688@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there!&#60;br /&#62;
i realy appreciate your work i am also trying to do something the above you done but a bit different can you tell me modifying this code to achieve the result on my form.&#60;br /&#62;
I want to populate 'Field ID 7' value into 'Field ID 8' dynamically of 'Form ID 2'.&#60;/p&#62;
&#60;p&#62;Back End : &#60;a href=&#34;http://screencast.com/t/s5vElgqGH&#34; rel=&#34;nofollow&#34;&#62;http://screencast.com/t/s5vElgqGH&#60;/a&#62;&#60;br /&#62;
Form Front End: &#60;a href=&#34;http://screencast.com/t/GZ2ouiVEeoe3&#34; rel=&#34;nofollow&#34;&#62;http://screencast.com/t/GZ2ouiVEeoe3&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I will realy appreciate your help.&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wsnider28 on "Populate Field From Previous Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-field-from-previous-field#post-48722</link>
			<pubDate>Wed, 08 Feb 2012 14:03:20 +0000</pubDate>
			<dc:creator>wsnider28</dc:creator>
			<guid isPermaLink="false">48722@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I finally got an email response that actually had an answer in it. Very simple, as long as you can find this code snippit.&#60;/p&#62;
&#60;p&#62;First, the field to be populated must be on a subsequent page from the field whose value you want to call.&#60;/p&#62;
&#60;p&#62;Second, the field to be populated must have the &#34;Allow field to be populated dynamically&#34; checkbox CHECKED, in the form editor, under the &#34;Advanced&#34; tab for that field.&#60;/p&#62;
&#60;p&#62;Finally, paste the following code (customized for your form and field id's) into functions.php :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

// update &#38;quot;108&#38;quot; to the ID of your form
add_filter(&#38;quot;gform_pre_render_108&#38;quot;, &#38;quot;populate_previous_page_data&#38;quot;);
function populate_previous_page_data($form){

    $page_number = rgpost(&#38;quot;gform_target_page_number_{$form[&#38;quot;id&#38;quot;]}&#38;quot;);
    $page_number = !is_numeric($page_number) ? 1 : $page_number;

    foreach($form[&#38;#39;fields&#38;#39;] as &#38;amp;$field) {

        if($field[&#38;#39;id&#38;#39;] != 15) // update &#38;quot;15&#38;quot; to the ID of the field you wish to be populated;

        $field_page = rgar($field, &#38;#39;pageNumber&#38;#39;);

        if($page_number &#38;gt; $field_page)
            continue;

        // update this to the ID of the field whose value you wish to call
        // &#38;#39;16.3&#38;#39; = example, first name of a Name field
        // &#38;#39;16.6&#38;#39; = example, last name of a Name field
        $field[&#38;#39;defaultValue&#38;#39;] = rgpost(&#38;#39;input_16_3&#38;#39;); 

    }

    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That did it for me.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VAR Channel Marketing on "Populate Field From Previous Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-field-from-previous-field#post-48712</link>
			<pubDate>Wed, 08 Feb 2012 12:48:00 +0000</pubDate>
			<dc:creator>VAR Channel Marketing</dc:creator>
			<guid isPermaLink="false">48712@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am also in your shoes (we are many like that) and I have also browsed the whole of the forum.&#60;br /&#62;
My case is different in that I want to use a prior selection (from a dropdown on the same page) to determine what percentage to use in a tax calculation (See example: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gravity_Forms_Pricing:_Adding_Tax)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gravity_Forms_Pricing:_Adding_Tax)&#60;/a&#62;.&#60;br /&#62;
May a solution come quick.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wsnider28 on "Populate Field From Previous Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-field-from-previous-field#post-48177</link>
			<pubDate>Thu, 02 Feb 2012 13:58:38 +0000</pubDate>
			<dc:creator>wsnider28</dc:creator>
			<guid isPermaLink="false">48177@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have been trying to populate a Number field from a previous Price field in the same form. I know that population of one field from a previous field in the same form is possible, but I don't know how.&#60;/p&#62;
&#60;p&#62;My email to priority support directed me to the forum instead. I've spent about 20 hours in the documentation and forums trying to figure out how to do it, and can't find it anywhere. The documentation is a bit vague (although I understand you can't put instructions for everything there), and any forum posts are either left unanswered (&#34;nevermind I figured it out,&#34; or &#34;just use jQuery&#34;), or tell the user to search the documentation and other posts. ...seriously?&#60;/p&#62;
&#60;p&#62;If someone can please explain exactly how to do this, or at least provide a link to a post that truly does explain how to do this (what the code should look like, where it goes, etc.), I'd REALLY appreciate it.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
