<?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: Variables in HTML Blocks</title>
		<link>https://legacy.forums.gravityhelp.com/topic/variables-in-html-blocks</link>
		<description>Gravity Support Forums Topic: Variables in HTML Blocks</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:27:00 +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/variables-in-html-blocks" rel="self" type="application/rss+xml" />

		<item>
			<title>Brad Trivers on "Variables in HTML Blocks"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/variables-in-html-blocks#post-70879</link>
			<pubDate>Mon, 13 Aug 2012 13:55:28 +0000</pubDate>
			<dc:creator>Brad Trivers</dc:creator>
			<guid isPermaLink="false">70879@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I was able to do this by creating a shortcode that retrieves the input values that I want to display in the HTML block.  In this case I'm display only &#34;product&#34; values (i.e. for products that are set up using pricing fields - i.e. via PayPal / PayPal Pro add-ons).&#60;/p&#62;
&#60;p&#62;Here is &#60;a href=&#34;http://pastebin.com/EQqYDMSC&#34; rel=&#34;nofollow&#34;&#62;the link to the code on PasteBin - &#60;a href=&#34;http://pastebin.com/EQqYDMSC&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/EQqYDMSC&#60;/a&#62;&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dan &amp; Jennifer on "Variables in HTML Blocks"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/variables-in-html-blocks#post-62792</link>
			<pubDate>Sun, 17 Jun 2012 16:09:03 +0000</pubDate>
			<dc:creator>Dan &amp; Jennifer</dc:creator>
			<guid isPermaLink="false">62792@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Capstone did you ever find a way to include dynamic content in an HTML block? &#60;/p&#62;
&#60;p&#62;I'm trying to do the same thing, but not seeing a way to do it... been searching the GF forums for an answer to this, but have not found any answer yet. :-)&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Variables in HTML Blocks"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/variables-in-html-blocks#post-60947</link>
			<pubDate>Thu, 31 May 2012 09:19:13 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">60947@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Try using this hook and just return true;&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_allowable_tags&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_allowable_tags&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I am not sure that will let you do JS inside it though. You could put a div or whatever in there with a class and then put JS in your header.php file to manage the content of that div. (I'm not JS expert though)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Capstone on "Variables in HTML Blocks"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/variables-in-html-blocks#post-60896</link>
			<pubDate>Wed, 30 May 2012 18:59:46 +0000</pubDate>
			<dc:creator>Capstone</dc:creator>
			<guid isPermaLink="false">60896@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there any way to include dynamic content in an HTML block? I'm passing variables to my form, and although I can use them to pre-populate fields, I would like a way to display them in an HTML block. Using javascript doesn't seem to work.... I've tried:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;p&#38;gt;
The value of this variable is
&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
document.write(variable);
&#38;lt;/script&#38;gt;
&#38;lt;/p&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is there another method? In a nutshell, I just need to DISPLAY some data to the user. I don't want it in a form field, because I don't want them to be able to change the value. Any suggestions?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
