<?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 on Submit button with Custom Filter Style</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-button-with-custom-filter-style</link>
		<description>Gravity Support Forums Topic: Conditional logic on Submit button with Custom Filter Style</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 19:20:15 +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-on-submit-button-with-custom-filter-style" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Conditional logic on Submit button with Custom Filter Style"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-button-with-custom-filter-style#post-246251</link>
			<pubDate>Fri, 10 May 2013 09:26:22 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">246251@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad you got it sorted. All my best!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hasanilx on "Conditional logic on Submit button with Custom Filter Style"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-button-with-custom-filter-style#post-245501</link>
			<pubDate>Thu, 09 May 2013 23:57:48 +0000</pubDate>
			<dc:creator>hasanilx</dc:creator>
			<guid isPermaLink="false">245501@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It works now using this code. I don't know exactly why but it works. Instead of setting up styles within each form I added a dynamic css call to gvg-btn-formid. That way I can add individual styles to different butons. Before I was setting up a filter for each button as each button needed to be different (size, padding, etc.). This is more elegant.&#60;/p&#62;
&#60;p&#62;// filter the Gravity Forms button type&#60;br /&#62;
add_filter(&#34;gform_submit_button&#34;, &#34;form_submit_button&#34;, 10, 2);&#60;br /&#62;
function form_submit_button($button, $form){&#60;br /&#62;
    return &#34;&#38;lt;button class='btn btn-danger btn-flat gvf-btn-&#34; . $form[&#34;id&#34;] . &#34;' id='gform_submit_button_{$form[&#34;id&#34;]}'&#38;gt;&#38;lt;span&#38;gt;&#34; . $form[&#34;button&#34;][&#34;text&#34;] . &#34;&#38;lt;/span&#38;gt;&#38;lt;/button&#38;gt;&#34;;&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hasanilx on "Conditional logic on Submit button with Custom Filter Style"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-button-with-custom-filter-style#post-244655</link>
			<pubDate>Thu, 09 May 2013 12:44:24 +0000</pubDate>
			<dc:creator>hasanilx</dc:creator>
			<guid isPermaLink="false">244655@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://198.1.66.203/~hx2admin/gift&#34; rel=&#34;nofollow&#34;&#62;http://198.1.66.203/~hx2admin/gift&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I created a filter in functions.php to change the look of form buttons. But now the conditional logic to show buttons doesn't work. For example in the sample link abovr the user should have to select yes or no to display the form submission button. If I remove the filter the conditional logic works just fine.&#60;/p&#62;
&#60;p&#62;Here is the filter added&#60;br /&#62;
add_filter(&#34;gform_submit_button_7&#34;, &#34;form_submit_button7&#34;, 10, 2);&#60;br /&#62;
function form_submit_button7($button, $form){&#60;br /&#62;
return &#34;&#34; . $form[&#34;button&#34;][&#34;text&#34;] . &#34;&#34;;&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Conditional logic on Submit button with Custom Filter Style"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-button-with-custom-filter-style#post-244513</link>
			<pubDate>Thu, 09 May 2013 11:04:29 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">244513@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you provide us with more information please? What customizations have you made to your submit button? What kind of conditional logic are you trying to add? What happens?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hasanilx on "Conditional logic on Submit button with Custom Filter Style"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-button-with-custom-filter-style#post-244466</link>
			<pubDate>Thu, 09 May 2013 10:21:27 +0000</pubDate>
			<dc:creator>hasanilx</dc:creator>
			<guid isPermaLink="false">244466@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Anyone?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hasanilx on "Conditional logic on Submit button with Custom Filter Style"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-on-submit-button-with-custom-filter-style#post-216129</link>
			<pubDate>Fri, 19 Apr 2013 22:20:30 +0000</pubDate>
			<dc:creator>hasanilx</dc:creator>
			<guid isPermaLink="false">216129@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I setup a filter for my buttons and it works fine, but I notice that now I can't add conditional logic to the submit buttons. How can I have custom submit buttons and have conditional logic show submit button. &#60;/p&#62;
&#60;p&#62;add_filter(&#34;gform_submit_button&#34;, &#34;form_submit_button&#34;, 10, 2);&#60;/p&#62;
&#60;p&#62;ThX
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
