<?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 Page 1 Data to Page 2</title>
		<link>https://legacy.forums.gravityhelp.com/topic/pass-page-1-data-to-page-2</link>
		<description>Gravity Support Forums Topic: Pass Page 1 Data to Page 2</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:25:01 +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-page-1-data-to-page-2" rel="self" type="application/rss+xml" />

		<item>
			<title>Dana Cobb on "Pass Page 1 Data to Page 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-page-1-data-to-page-2#post-47013</link>
			<pubDate>Fri, 20 Jan 2012 17:15:38 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">47013@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry for the delayed response. Yes, it is possible to reference data from page 1 on page 2. You may use the hook &#34;gform_pre_render&#34; and pull the information you need out of $_POST. The documentation is located at &#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; .&#60;/p&#62;
&#60;p&#62;Below is a sample I made. I have two pages. The first page has first name and last name. The second page has an html field that I populated with the first/last name from the first page.&#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;</description>
		</item>
		<item>
			<title>cyteworks on "Pass Page 1 Data to Page 2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-page-1-data-to-page-2#post-45493</link>
			<pubDate>Wed, 04 Jan 2012 18:25:58 +0000</pubDate>
			<dc:creator>cyteworks</dc:creator>
			<guid isPermaLink="false">45493@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there anyway to reference &#34;Field Data&#34; from page 1 on Page 2 of a multi page form?  Example:  If I require Name on page 1 can I display &#34;name&#34; on page 2?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
