<?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: Javascript errors when using shortcode in template</title>
		<link>https://legacy.forums.gravityhelp.com/topic/javascript-errors-when-using-shortcode-in-template</link>
		<description>Gravity Support Forums Topic: Javascript errors when using shortcode in template</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:36:18 +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/javascript-errors-when-using-shortcode-in-template" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Javascript errors when using shortcode in template"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/javascript-errors-when-using-shortcode-in-template#post-44087</link>
			<pubDate>Wed, 14 Dec 2011 22:15:21 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">44087@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Komodo, what does not work for you?  Can you described exactly what is not working?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>komododigital on "Javascript errors when using shortcode in template"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/javascript-errors-when-using-shortcode-in-template#post-43933</link>
			<pubDate>Tue, 13 Dec 2011 12:56:11 +0000</pubDate>
			<dc:creator>komododigital</dc:creator>
			<guid isPermaLink="false">43933@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am experiencing the exact same problem, placing a shortcode in Advanced Custom Fields ( no regular content area ).&#60;/p&#62;
&#60;p&#62;I have tried manually enqueing my scripts too. but to no avail. My form is on this page here...&#60;br /&#62;
&#60;a href=&#34;http://www.citysun.ac.uk/2011/12/on-course-delivery-survey/&#34; rel=&#34;nofollow&#34;&#62;http://www.citysun.ac.uk/2011/12/on-course-delivery-survey/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;All other forms work on this site, ( such as &#60;a href=&#34;http://www.citysun.ac.uk/about-us/contact-us/&#34; rel=&#34;nofollow&#34;&#62;http://www.citysun.ac.uk/about-us/contact-us/&#60;/a&#62; ) &#60;/p&#62;
&#60;p&#62;Getting rid of Advanced Custom Fields isn't an option unfortunately so are there any other fixes available for me?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Javascript errors when using shortcode in template"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/javascript-errors-when-using-shortcode-in-template#post-43776</link>
			<pubDate>Mon, 12 Dec 2011 12:03:02 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">43776@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When you place the form code in the template are you enqueueing your scripts and styles?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>1-phantomdentist on "Javascript errors when using shortcode in template"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/javascript-errors-when-using-shortcode-in-template#post-43775</link>
			<pubDate>Mon, 12 Dec 2011 12:01:19 +0000</pubDate>
			<dc:creator>1-phantomdentist</dc:creator>
			<guid isPermaLink="false">43775@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When inserting a form with conditional logic or text count via shortcode in the wysiwyg editor, say...&#60;/p&#62;
&#60;p&#62; [gravityform id=&#34;4&#34; name=&#34;Quote - Remote Backup&#34; description=&#34;false&#34;] &#60;/p&#62;
&#60;p&#62;the form loads up no problem. However if I use say...&#60;/p&#62;
&#60;p&#62;&#38;lt;?php echo do_shortcode('[gravityform id=&#34;4&#34; name=&#34;Quote - Remote Backup&#34; description=&#34;false&#34;]'); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;in a template the form is automatically hidden, I believe due to Javascript issues. &#60;/p&#62;
&#60;p&#62;I get a few Javascript errors in firebug. &#60;/p&#62;
&#60;p&#62;&#34;gf_apply_rules is not defined&#34;&#60;br /&#62;
&#34;Uncaught TypeError: Object[object Object] has no method 'textareaCount'&#34; &#60;/p&#62;
&#60;p&#62;I have tried disabling all plugins, switching to the 2011 theme, removing custom javascript files that I call in my header.&#60;/p&#62;
&#60;p&#62;It might also be worth mentioning that I use the advanced custom fields plugin found &#60;a href=&#34;http://wordpress.org/extend/plugins/advanced-custom-fields/&#34; rel=&#34;nofollow&#34;&#62;here&#60;/a&#62; and when inserting a shortcode in a wysiwyg textarea created by this plugin the forms will have the same issues, only through the standard wordpress wysiwyg editor will the forms display, with no Javascript error.&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
