<?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: {user:display_name} in HTML block?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/userdisplay_name-in-html-block</link>
		<description>Gravity Support Forums Topic: {user:display_name} in HTML block?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:07:55 +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/userdisplay_name-in-html-block" rel="self" type="application/rss+xml" />

		<item>
			<title>Dana Cobb on "{user:display_name} in HTML block?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/userdisplay_name-in-html-block#post-52393</link>
			<pubDate>Wed, 14 Mar 2012 11:55:35 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">52393@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, SlickSites,&#60;/p&#62;
&#60;p&#62;Yes, this is possible. You can display data from one page on another by using the &#34;gform_pre_render&#34; 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;. Below is an example I provided to another user where they displayed the name on the second page of their multi-page form:&#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 (or use gform_pre_render_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 (was field 1 on this form)
			$last = rgpost(&#38;quot;input_1_6&#38;quot;); //last name field when using the normal name format broken into two fields (was field 1 on this form)
			foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field)
			{
				//html field (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;If you simply want to display this info in your confirmation text, in your Form Settings, you can use &#34;Insert Merge Tag&#34; and select your field. You can use HTML in there as well.&#60;/p&#62;
&#60;p&#62;Take a look and let me know if you have questions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SlickSites on "{user:display_name} in HTML block?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/userdisplay_name-in-html-block#post-51557</link>
			<pubDate>Wed, 07 Mar 2012 01:33:40 +0000</pubDate>
			<dc:creator>SlickSites</dc:creator>
			<guid isPermaLink="false">51557@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi - had a scour through forums but can't see solution for this.&#60;br /&#62;
I have a multipage form.&#60;br /&#62;
On page one it has 'Name' field.&#60;br /&#62;
I would like the &#34;Name' entered to appear in an html block on the final page.&#60;br /&#62;
So that it reads &#34; Thank-you for your form submission {user:display_name} &#34;&#60;br /&#62;
Possible?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
