<?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: User defined price with minimum amount</title>
		<link>https://legacy.forums.gravityhelp.com/topic/user-defined-price-with-minimum-amount</link>
		<description>Gravity Support Forums Topic: User defined price with minimum amount</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 12:00:36 +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/user-defined-price-with-minimum-amount" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "User defined price with minimum amount"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-defined-price-with-minimum-amount#post-213129</link>
			<pubDate>Wed, 17 Apr 2013 12:38:48 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">213129@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We updated the gform_field_validation page to include an appropriate example of this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_validation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_validation&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>imagebox on "User defined price with minimum amount"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/user-defined-price-with-minimum-amount#post-211599</link>
			<pubDate>Tue, 16 Apr 2013 09:48:17 +0000</pubDate>
			<dc:creator>imagebox</dc:creator>
			<guid isPermaLink="false">211599@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am trying to setup a custom validation for the user defined price. I followed this code example in the documentation and haven't been able to get it to work correctly (it returns an error no matter what). &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_validation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_validation&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here is an example where we need to have a minimum donation amount of $3,000: &#60;a href=&#34;http://templedavid.org/jason-z-edelstein-endowment-fund-bricks/&#34; rel=&#34;nofollow&#34;&#62;http://templedavid.org/jason-z-edelstein-endowment-fund-bricks/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;My code in functions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_validation_12_1&#38;quot;, &#38;quot;custom_validation3&#38;quot;, 10, 4);
function custom_validation3($result, $value, $form, $field){

    if($result[&#38;quot;is_valid&#38;quot;] &#38;amp;&#38;amp; intval($value) &#38;lt; 3000){
        $result[&#38;quot;is_valid&#38;quot;] = false;
        $result[&#38;quot;message&#38;quot;] = &#38;quot;You must donate at least $3,000 to be eligible for a brick.&#38;quot;;
    }
    return $result;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any ideas on how I can make this work? Maybe it has something to do with the field being a dollar amount?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
