<?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: Custom Validation by field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-validation-by-field</link>
		<description>Gravity Support Forums Topic: Custom Validation by field</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:32:14 +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/custom-validation-by-field" rel="self" type="application/rss+xml" />

		<item>
			<title>JnJ on "Custom Validation by field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-validation-by-field#post-35562</link>
			<pubDate>Sat, 17 Sep 2011 13:19:04 +0000</pubDate>
			<dc:creator>JnJ</dc:creator>
			<guid isPermaLink="false">35562@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I downloaded it and everything seems to be working great, thanks!  Now if only I could get my wordpress SQL stuff right... but that's another topic. Thanks again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Custom Validation by field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-validation-by-field#post-35557</link>
			<pubDate>Sat, 17 Sep 2011 11:18:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">35557@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is nothing in particular unstable.  There have been little bug fixes, but in my testing it's completely usable.  The beta 3 version was just released and it's very stable.  Please test it out and see if it meets your needs.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JnJ on "Custom Validation by field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-validation-by-field#post-35553</link>
			<pubDate>Sat, 17 Sep 2011 09:34:49 +0000</pubDate>
			<dc:creator>JnJ</dc:creator>
			<guid isPermaLink="false">35553@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So this morning I realized that version 1.6 of gravity forms (which the field validation is new in) is still in beta and I'm on 1.5.2.8. So that's why the custom field validation doesn't work. Guess I'll either go beta or use the whole field validation.&#60;/p&#62;
&#60;p&#62;Is there anything in particular that is unstable in the beta? All I'm using it for is one user registration form with a custom validation on one field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JnJ on "Custom Validation by field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-validation-by-field#post-35544</link>
			<pubDate>Sat, 17 Sep 2011 00:10:21 +0000</pubDate>
			<dc:creator>JnJ</dc:creator>
			<guid isPermaLink="false">35544@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a form that will eventually be a user registration form that has a custom validation check for a registration code held in the database, but I can't even get the most basic validation check to work. I think must be doing something really simple wrong but I can't tell. I'm using the exact same code in the documentation for get_field_validation, but with my own form and field ID.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_validation_1_4&#38;quot;, &#38;quot;custom_validation&#38;quot;, 10, 4);
function custom_validation($result, $value, $form, $field){

    if($result[&#38;quot;is_valid&#38;quot;] &#38;amp;&#38;amp; intval($value) &#38;gt; 10){
        $result[&#38;quot;is_valid&#38;quot;] = false;
        $result[&#38;quot;message&#38;quot;] = &#38;quot;Please enter a value less than 10&#38;quot;;
    }
    return $result;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;All I wanted to do was make sure I could have custom validation work but not even this works, the form submits successfully no matter what. Does the validation only work on certain field types? I'm using a Single Line Text field. The test form is currently at &#60;a href=&#34;http://qrkeycard.com/?page_id=5&#34; rel=&#34;nofollow&#34;&#62;http://qrkeycard.com/?page_id=5&#60;/a&#62; if you want to see it or try it for yourself.&#60;/p&#62;
&#60;p&#62;Hopefully this is just a facepalm moment and I can feel dumb and then we can laugh and move on.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
