<?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: Conditional Logic Fields Breaking Form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-fields-breaking-form</link>
		<description>Gravity Support Forums Topic: Conditional Logic Fields Breaking Form</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 04:47:43 +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/conditional-logic-fields-breaking-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Conditional Logic Fields Breaking Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-fields-breaking-form#post-38749</link>
			<pubDate>Mon, 24 Oct 2011 12:05:12 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38749@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It's fine in custom_functions.php.  It will enqueue the scripts on all pages, unless you make provisions to load it conditionally.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ben on "Conditional Logic Fields Breaking Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-fields-breaking-form#post-38693</link>
			<pubDate>Sun, 23 Oct 2011 17:58:20 +0000</pubDate>
			<dc:creator>Ben</dc:creator>
			<guid isPermaLink="false">38693@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ooops. That was silly of me. I now have the following code in my custom_functions.php file in my Thesis theme and the form is now working with conditional logic:&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
gravity_form_enqueue_scripts(3, true);&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;Do you foresee any problems if I just leave it calling from the custom_functions.php file or should I make a hook that makes it call from the header? &#60;/p&#62;
&#60;p&#62;-Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ben on "Conditional Logic Fields Breaking Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-fields-breaking-form#post-38692</link>
			<pubDate>Sun, 23 Oct 2011 17:49:53 +0000</pubDate>
			<dc:creator>Ben</dc:creator>
			<guid isPermaLink="false">38692@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think I'm a little closer to having the right code now. Here's what I have:&#60;br /&#62;
&#60;a href=&#34;http://www.pastie.org/2747411&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/2747411&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm tyring to display the form on this page:&#60;br /&#62;
&#60;a href=&#34;http://www.ophthopedia.org/wordpressv2/?page_id=6&#34; rel=&#34;nofollow&#34;&#62;http://www.ophthopedia.org/wordpressv2/?page_id=6&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ben on "Conditional Logic Fields Breaking Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-fields-breaking-form#post-38665</link>
			<pubDate>Sat, 22 Oct 2011 20:28:06 +0000</pubDate>
			<dc:creator>Ben</dc:creator>
			<guid isPermaLink="false">38665@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the quick reply, but I'm sorry, I'm not really much of a coder. I've updated the embed code to the correct syntax below, but I'm having trouble with the gform_enque_scripts code. &#60;/p&#62;
&#60;p&#62;I'm getting the following error:&#60;br /&#62;
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'enqueue_custom_script' was given in /home/primeh2/public_html/ophthopedia/wordpressv2/wp-includes/plugin.php on line 405&#60;/p&#62;
&#60;p&#62;With the following embed code:&#60;br /&#62;
&#38;lt;?php gravity_form(3, $display_title=false, $display_description=false, $display_inactive=false, $field_values=null, $ajax=false, $tabindex); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;And the gform_enque_scripts code. This is what's causing the error. I know this is the wrong code, but I'm not sure how to fix it. I'm assuming I'm supposed to call the actual conditional logic script with a variation of this code, but I'm not sure how. Also, what does the 10 and the 2 indicate?:&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
add_action(&#34;gform_enqueue_scripts&#34;, &#34;enqueue_custom_script&#34;, 10, 2);&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Ben
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Conditional Logic Fields Breaking Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-fields-breaking-form#post-37991</link>
			<pubDate>Sat, 15 Oct 2011 18:29:45 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">37991@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You need to manually enqueue your scripts in the theme when using the php function call to embed the form. That's why the form doesn't show when you enable conditional logic - the conditional logic script isn't being loaded.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_enqueue_scripts&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_enqueue_scripts&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ben on "Conditional Logic Fields Breaking Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-fields-breaking-form#post-37987</link>
			<pubDate>Sat, 15 Oct 2011 15:11:59 +0000</pubDate>
			<dc:creator>Ben</dc:creator>
			<guid isPermaLink="false">37987@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I currently have a form created and it's working great. However, I'm having trouble getting conditional logic working. The form is split into two different pages. The first page has a check box that the use has to tick to agree to our terms and conditions. I'm trying to set conditional logic to prevent the second page from showing without that check box being ticked. &#60;/p&#62;
&#60;p&#62;When I enable next button conditional logic on the page break divider, my form simply stops displaying at all on my website. The same thing happens if I enable conditional logic on any of the other form fields.&#60;/p&#62;
&#60;p&#62;Any Ideas?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Ben&#60;/p&#62;
&#60;p&#62;Note: I'm currently calling the form in a php file using the following code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#38;lt;?php echo do_shortcode('[gravityform id=3 name=Contribute title=false description=false ajax=false]'); ?&#38;gt;&#60;code&#62;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
