<?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: Use data from page 1 field on page 2</title>
		<link>https://legacy.forums.gravityhelp.com/topic/use-data-from-page-1-field-on-page-2</link>
		<description>Gravity Support Forums Topic: Use data from page 1 field on page 2</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 22:06:11 +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/use-data-from-page-1-field-on-page-2" rel="self" type="application/rss+xml" />

		<item>
			<title>Dana Cobb on "Use data from page 1 field on page 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-data-from-page-1-field-on-page-2#post-50696</link>
			<pubDate>Mon, 27 Feb 2012 13:49:00 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">50696@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, tamlyn,&#60;/p&#62;
&#60;p&#62;You can use the gform_pre_render hook (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#60;/a&#62;) along with pulling the information out of $_POST.&#60;/p&#62;
&#60;p&#62;Below is an example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_render&#38;quot;, &#38;quot;populate_welcome&#38;quot;);
function populate_welcome($form)
{
	//only get data form form id 31
	if ($form[&#38;quot;id&#38;quot;] == 31)
	{
		//check what page you are on
		$current_page = GFFormDisplay::get_current_page($form[&#38;quot;id&#38;quot;]);
		if ($current_page == 2)
		{
			//set the field on page 2 to the first/last name from page 1
			//get the name
			$first = rgpost(&#38;quot;input_1_3&#38;quot;); //first name field when using the normal name format broken into two fields
			$last = rgpost(&#38;quot;input_1_6&#38;quot;); //last name field when using the normal name format broken into two fields
			foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field)
			{
				//html field (id 3) on second page which will display name from first page
				if ($field[&#38;quot;id&#38;quot;] == 3)
				{
					$field[&#38;quot;content&#38;quot;] = &#38;quot;Welcome, &#38;quot; . $first . &#38;quot; &#38;quot; . $last;
				}
			}
		}
	}
	//return altered form so changes are displayed
	return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let me know if you have questions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tamlyn on "Use data from page 1 field on page 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-data-from-page-1-field-on-page-2#post-50347</link>
			<pubDate>Thu, 23 Feb 2012 14:30:17 +0000</pubDate>
			<dc:creator>tamlyn</dc:creator>
			<guid isPermaLink="false">50347@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've got a 2 page form in which I would like to display some of the data from page 1 on page 2. I understand how to hook into the form to customise the display on the second page but I don't know how to get at the values of the fields from the first page. &#60;/p&#62;
&#60;p&#62;gform_post_paging only gives me the form array which doesn't seem to contain the values. Do any of the other form submission hooks/filters fire between pages? If not, is there a function or global I can access to get at the field values? Or, as a last resort, do I have to dip into the $_POST array?&#60;/p&#62;
&#60;p&#62;Any pointers appreciated.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
