<?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: [bug] Including with template function causes jquery ui to fail</title>
		<link>https://legacy.forums.gravityhelp.com/topic/bug-including-with-template-function-causes-jquery-ui-to-fail</link>
		<description>Gravity Support Forums Topic: [bug] Including with template function causes jquery ui to fail</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 19:56:12 +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/bug-including-with-template-function-causes-jquery-ui-to-fail" rel="self" type="application/rss+xml" />

		<item>
			<title>m4change on "[bug] Including with template function causes jquery ui to fail"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-including-with-template-function-causes-jquery-ui-to-fail#post-12827</link>
			<pubDate>Wed, 17 Nov 2010 16:43:28 +0000</pubDate>
			<dc:creator>m4change</dc:creator>
			<guid isPermaLink="false">12827@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;you can mark this as resolved
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m4change on "[bug] Including with template function causes jquery ui to fail"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-including-with-template-function-causes-jquery-ui-to-fail#post-12823</link>
			<pubDate>Wed, 17 Nov 2010 15:18:10 +0000</pubDate>
			<dc:creator>m4change</dc:creator>
			<guid isPermaLink="false">12823@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;okay, I've added the following but I don't know what the &#34;proper&#34; dependencies should be. I just defaulted to the datepicker.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;wp_enqueue_script(&#38;quot;gforms_json&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/jquery.json-2.2.js&#38;quot;, array(&#38;quot;gforms_ui_datepicker&#38;quot;), &#38;quot;1.3.9&#38;quot;, true);
wp_enqueue_script(&#38;quot;gforms_multipage&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/multipage.js&#38;quot;, array(&#38;quot;gforms_ui_datepicker&#38;quot;), &#38;quot;1.3.9&#38;quot;, true);
wp_enqueue_script(&#38;quot;gforms_textareacount&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/jquery.textareaCounter.plugin.js&#38;quot;, array(&#38;quot;gforms_ui_datepicker&#38;quot;), &#38;quot;1.3.9&#38;quot;, true);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;ah... but here's a bummer, the paging closes the accordion on &#34;next&#34;&#60;/p&#62;
&#60;p&#62;edit: I had to edit ajax:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php gravity_form(2, false, false, false, null, true); ?&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m4change on "[bug] Including with template function causes jquery ui to fail"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-including-with-template-function-causes-jquery-ui-to-fail#post-12821</link>
			<pubDate>Wed, 17 Nov 2010 15:10:30 +0000</pubDate>
			<dc:creator>m4change</dc:creator>
			<guid isPermaLink="false">12821@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm using jquery.ui.accordion from the 1.8.6 package.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;wp_enqueue_style(&#38;#39;jquery-ui&#38;#39;, get_bloginfo(&#38;#39;template_url&#38;#39;) . &#38;#39;/css/redmond/jquery-ui-1.8.5.custom.css&#38;#39;);
wp_enqueue_style(&#38;#39;ui-selectmenu&#38;#39;, get_bloginfo(&#38;#39;template_url&#38;#39;) . &#38;#39;/css/ui.selectmenu.css&#38;#39;);
wp_enqueue_style(&#38;quot;gforms_css&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/css/forms.css&#38;quot;);
wp_enqueue_script(&#38;#39;jquery-ui-core&#38;#39;);
wp_enqueue_script(&#38;#39;ui-widget&#38;#39;, get_bloginfo(&#38;#39;template_url&#38;#39;) . &#38;#39;/js/ui.widget.js&#38;#39;, array(&#38;#39;jquery-ui-core&#38;#39;));
wp_enqueue_script(&#38;#39;ui-accordion&#38;#39;, get_bloginfo(&#38;#39;template_url&#38;#39;) . &#38;#39;/js/ui.accordion.js&#38;#39;, array(&#38;#39;jquery-ui-core&#38;#39;, &#38;#39;ui-widget&#38;#39;));
wp_enqueue_script(&#38;#39;ui-selectmenu&#38;#39;, get_bloginfo(&#38;#39;template_url&#38;#39;) . &#38;#39;/js/ui.selectmenu.js&#38;#39;, array(&#38;#39;jquery-ui-core&#38;#39;));
wp_enqueue_script(&#38;#39;page-partners&#38;#39;, get_bloginfo(&#38;#39;template_url&#38;#39;) . &#38;#39;/js/page.partners.js&#38;#39;,array(&#38;#39;jquery-ui-core&#38;#39;),&#38;#39;1.0&#38;#39;,true);
wp_enqueue_script(&#38;quot;gforms_ui_datepicker&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/jquery-ui/ui.datepicker.js&#38;quot;, array(&#38;quot;jquery&#38;quot;), &#38;quot;1.3.9&#38;quot;, true);
wp_enqueue_script(&#38;quot;gforms_datepicker&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/datepicker.js&#38;quot;, array(&#38;quot;gforms_ui_datepicker&#38;quot;), &#38;quot;1.3.9&#38;quot;, true);
wp_enqueue_script(&#38;quot;gforms_conditional_logic_lib&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/conditional_logic.js&#38;quot;, array(&#38;quot;gforms_ui_datepicker&#38;quot;), &#38;quot;1.3.9&#38;quot;, true);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;am I missing any enqueues?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "[bug] Including with template function causes jquery ui to fail"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-including-with-template-function-causes-jquery-ui-to-fail#post-12815</link>
			<pubDate>Wed, 17 Nov 2010 14:18:13 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">12815@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What accordion script are you referring to? Gravity Forms doesn't use an accordion script.&#60;/p&#62;
&#60;p&#62;When including Gravity Forms via the function call you must enqueue all necessary JS and CSS manually.  This isn't a bug, it's intended functionality.  The function call can be used anywhere and at anytime on a WordPress site and enqueue only works at certain points in the WordPress processing so the function call can't do it automatically.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m4change on "[bug] Including with template function causes jquery ui to fail"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-including-with-template-function-causes-jquery-ui-to-fail#post-12814</link>
			<pubDate>Wed, 17 Nov 2010 14:07:42 +0000</pubDate>
			<dc:creator>m4change</dc:creator>
			<guid isPermaLink="false">12814@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't even know how to explain this... but what I realized is that if I include the form in the template using:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php gravity_form(2, false, false); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;it will fail to load the jquery ui accordion that wraps it&#60;/p&#62;
&#60;p&#62;fwiw, I use:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;wp_enqueue_style(&#38;quot;gforms_css&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/css/forms.css&#38;quot;);&#60;/code&#62; to style it and include the javascripts the same way:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;wp_enqueue_script(&#38;quot;gforms_ui_datepicker&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/jquery-ui/ui.datepicker.js&#38;quot;, array(&#38;quot;jquery&#38;quot;), &#38;quot;1.3.9&#38;quot;, true);

wp_enqueue_script(&#38;quot;gforms_datepicker&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/datepicker.js&#38;quot;, array(&#38;quot;gforms_ui_datepicker&#38;quot;), &#38;quot;1.3.9&#38;quot;, true);

wp_enqueue_script(&#38;quot;gforms_conditional_logic_lib&#38;quot;, WP_PLUGIN_URL . &#38;quot;/gravityforms/js/conditional_logic.js&#38;quot;, array(&#38;quot;gforms_ui_datepicker&#38;quot;), &#38;quot;1.3.9&#38;quot;, true);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but in either case it (with or without those includes) it fails.&#60;/p&#62;
&#60;p&#62;However, if I include via shortcode:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;[gravityform id=2 name=Contact title=false description=false]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;everything is hunky dory.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
