<?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: Merge Tag - Add Multisite Site Name</title>
		<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name</link>
		<description>Gravity Support Forums Topic: Merge Tag - Add Multisite Site Name</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:38:34 +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/merge-tag-add-multisite-site-name" rel="self" type="application/rss+xml" />

		<item>
			<title>RonRichardson on "Merge Tag - Add Multisite Site Name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name#post-235264</link>
			<pubDate>Fri, 03 May 2013 11:15:21 +0000</pubDate>
			<dc:creator>RonRichardson</dc:creator>
			<guid isPermaLink="false">235264@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It appears to be working... thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RonRichardson on "Merge Tag - Add Multisite Site Name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name#post-235197</link>
			<pubDate>Fri, 03 May 2013 10:38:47 +0000</pubDate>
			<dc:creator>RonRichardson</dc:creator>
			<guid isPermaLink="false">235197@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll give that a try.  Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Merge Tag - Add Multisite Site Name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name#post-234477</link>
			<pubDate>Fri, 03 May 2013 00:54:01 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">234477@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Have a look at this for more information - &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_replace_merge_tags&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_replace_merge_tags&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RonRichardson on "Merge Tag - Add Multisite Site Name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name#post-232734</link>
			<pubDate>Wed, 01 May 2013 22:29:32 +0000</pubDate>
			<dc:creator>RonRichardson</dc:creator>
			<guid isPermaLink="false">232734@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Awesome, thanks Chris!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Merge Tag - Add Multisite Site Name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name#post-232701</link>
			<pubDate>Wed, 01 May 2013 21:58:41 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">232701@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ron, we've asked the development team for their input on this for you.  Hang tight.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RonRichardson on "Merge Tag - Add Multisite Site Name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name#post-232197</link>
			<pubDate>Wed, 01 May 2013 11:58:28 +0000</pubDate>
			<dc:creator>RonRichardson</dc:creator>
			<guid isPermaLink="false">232197@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Still have not found a solution.  Anyone have ideas?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RonRichardson on "Merge Tag - Add Multisite Site Name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name#post-229877</link>
			<pubDate>Mon, 29 Apr 2013 12:25:50 +0000</pubDate>
			<dc:creator>RonRichardson</dc:creator>
			<guid isPermaLink="false">229877@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Tried adding the tag and get error when viewing Entry:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
	gform.addFilter(&#38;quot;gform_merge_tags&#38;quot;, &#38;quot;add_merge_tags&#38;quot;);

	function add_merge_tags(mergeTags, elementId, hideAllFields, excludeFieldTypes, isPrepop, option){
		mergeTags[&#38;quot;custom&#38;quot;].tags.push({ tag: &#38;#39;{site_name}&#38;#39;, label: &#38;#39;Site Name&#38;#39; });

		return mergeTags;
	}
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I get error:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Uncaught ReferenceError: gform is not defined&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Just after the first gform...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RonRichardson on "Merge Tag - Add Multisite Site Name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name#post-229843</link>
			<pubDate>Mon, 29 Apr 2013 11:59:14 +0000</pubDate>
			<dc:creator>RonRichardson</dc:creator>
			<guid isPermaLink="false">229843@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I found this:  &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_merge_tags&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_merge_tags&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Again, this seems to only show how to add the tag to the merge tag list but not how to assign content to the tag.&#60;/p&#62;
&#60;p&#62;is there another example somewhere that shows this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RonRichardson on "Merge Tag - Add Multisite Site Name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name#post-228814</link>
			<pubDate>Sun, 28 Apr 2013 17:08:15 +0000</pubDate>
			<dc:creator>RonRichardson</dc:creator>
			<guid isPermaLink="false">228814@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Darn!    Is there one easy way to add a new merge tag?  This is certainly not intuitive!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RonRichardson on "Merge Tag - Add Multisite Site Name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/merge-tag-add-multisite-site-name#post-227365</link>
			<pubDate>Sat, 27 Apr 2013 14:59:06 +0000</pubDate>
			<dc:creator>RonRichardson</dc:creator>
			<guid isPermaLink="false">227365@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm trying to add the MU Site Name to Merge Tags drop down.&#60;/p&#62;
&#60;p&#62;I found the &#34;Gform merge tags&#34; documentation and using that, I added to functions.php&#60;/p&#62;
&#60;p&#62;snippet:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;gform.addFilter(&#38;quot;gform_merge_tags&#38;quot;, &#38;quot;add_merge_tags&#38;quot;);
	function add_merge_tags(mergeTags, elementId, hideAllFields, excludeFieldTypes, isPrepop, option){
		mergeTags[&#38;quot;custom&#38;quot;].tags.push({ tag: &#38;#39;{site_name}&#38;#39;, label: &#38;#39;Site Name&#38;#39; });

		return mergeTags;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I now see the custom merge tag: &#34;Site Name&#34; in the Merge Tag dropdown but don't see how to assign that tag to the actual site name.   I can get the site name using:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//get MU site name
		global $blog_id;
		$local_site_name = get_blog_details( array( &#38;#39;blog_id&#38;#39; =&#38;gt; $blog_id ) );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'm thinking that the above just adds the tag to the list but somewhere else the content gets assigned to the tag label.   ( The docs could be a bit clearer on this subject! )&#60;/p&#62;
&#60;p&#62;Any help would be appreciated!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
