<?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: $0 Donation causes form to disappear</title>
		<link>https://legacy.forums.gravityhelp.com/topic/0-donation-causes-form-to-disappear</link>
		<description>Gravity Support Forums Topic: $0 Donation causes form to disappear</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 15:05:44 +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/0-donation-causes-form-to-disappear" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "$0 Donation causes form to disappear"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/0-donation-causes-form-to-disappear#post-53900</link>
			<pubDate>Fri, 30 Mar 2012 20:37:24 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">53900@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;RIght on right on! Glad to help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>clustrmedia on "$0 Donation causes form to disappear"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/0-donation-causes-form-to-disappear#post-53883</link>
			<pubDate>Fri, 30 Mar 2012 14:32:25 +0000</pubDate>
			<dc:creator>clustrmedia</dc:creator>
			<guid isPermaLink="false">53883@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Worked like a charm! Thank you very much!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "$0 Donation causes form to disappear"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/0-donation-causes-form-to-disappear#post-53720</link>
			<pubDate>Wed, 28 Mar 2012 20:41:46 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">53720@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Gotcha, no problem, this should work for you. Place this into your theme's functions file. This is using the gform_validation hook that is found here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_validation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_validation&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
//Form ID
add_filter(&#38;#39;gform_validation_3&#38;#39;, &#38;#39;custom_validation&#38;#39;);
function custom_validation($validation_result){

    //finding field with ID of 1 and making sure quantity is greater than 0
    foreach($validation_result[&#38;quot;form&#38;quot;][&#38;quot;fields&#38;quot;] as &#38;amp;$field){

        //NOTE: the field you would like to validate
        if($field[&#38;quot;id&#38;quot;] == &#38;quot;4&#38;quot;){

            //Base prices are retrieved using &#38;quot;input_FIELDID_2&#38;quot;
            $base_price = GFCommon::to_number($_POST[&#38;quot;input_3_2&#38;quot;]);

            //Quantities are retrieved using &#38;quot;input_FIELDID_3&#38;quot;
            $quantity = $_POST[&#38;quot;input_3_3&#38;quot;];

            //fails validation if quantity is not a positive integer or if price is equal to $0
            if($quantity &#38;lt;= 0 &#124;&#124; $base_price == 0){
                $validation_result[&#38;quot;is_valid&#38;quot;] = false;
                $field[&#38;quot;failed_validation&#38;quot;] = true;
                $field[&#38;quot;validation_message&#38;quot;] = &#38;quot;Please enter a valid amount.&#38;quot;;
            }

            break;
        }
    }
    return $validation_result;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>clustrmedia on "$0 Donation causes form to disappear"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/0-donation-causes-form-to-disappear#post-53713</link>
			<pubDate>Wed, 28 Mar 2012 19:46:21 +0000</pubDate>
			<dc:creator>clustrmedia</dc:creator>
			<guid isPermaLink="false">53713@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Rob. We don't want to change the amount the user enters in the donation field. We just want the error message to display if they enter $0. Is there a filter for that? I'm not that skilled in PHP so I may need a bit more help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "$0 Donation causes form to disappear"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/0-donation-causes-form-to-disappear#post-53647</link>
			<pubDate>Tue, 27 Mar 2012 20:39:08 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">53647@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That sucks that you really have people try to donate $0 to you. I mean, $0.00 is a valid amount, technically. I'm thinking you might need to use this filter to potentially check for a $0.00 amount and then maybe set it to a minimum of $1.00.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_paypal_query&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_paypal_query&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>clustrmedia on "$0 Donation causes form to disappear"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/0-donation-causes-form-to-disappear#post-53643</link>
			<pubDate>Tue, 27 Mar 2012 19:40:45 +0000</pubDate>
			<dc:creator>clustrmedia</dc:creator>
			<guid isPermaLink="false">53643@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have set up a donation form with the Paypal Add-On. I have set the donation field to be a User-Defined Price. The problem we have run into is if the user submits the form with $0 in the donation field, the form disappears. It doesn't show the normal error handling message like if you were to enter a negative value like -$1.00. What do I need to change to make it display the error message instead of making the form disappear?&#60;/p&#62;
&#60;p&#62;The form can be viewed here - &#60;a href=&#34;http://techisgood.org/donate/&#34; rel=&#34;nofollow&#34;&#62;http://techisgood.org/donate/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
