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

		<item>
			<title>kyle on "Validation Filter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/validation-filter#post-56808</link>
			<pubDate>Fri, 27 Apr 2012 11:51:21 +0000</pubDate>
			<dc:creator>kyle</dc:creator>
			<guid isPermaLink="false">56808@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You might need to return $validation_result (the error might be coming later, when GF expects a value for $validation_result).&#60;/p&#62;
&#60;p&#62;I suspect you have already tried that, but figured I'd mention it, just in case.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>developdaly on "Validation Filter"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/validation-filter#post-56805</link>
			<pubDate>Fri, 27 Apr 2012 11:30:23 +0000</pubDate>
			<dc:creator>developdaly</dc:creator>
			<guid isPermaLink="false">56805@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm trying to use the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_validation&#34; rel=&#34;nofollow&#34;&#62;&#60;code&#62;gform_validation&#60;/code&#62;&#60;/a&#62; filter, but running into several errors.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;gform_validation_1&#38;#39;, &#38;#39;my_validation&#38;#39; );

function my_validation($validation_result ) {
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Just running that code without any actual validation (adding validation results in more warnings), prints the following error after submission and page refresh:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Warning: Invalid argument supplied for foreach() in /my/server/path/wp-content/plugins/gravityforms/form_display.php on line 111&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;AND where the form confirmation or form would be, &#60;code&#62;Oops! We could not locate your form.&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;I am absolutely certain there is a form with the ID of 1. I also am running &#60;code&#62;gform_after_submission_1&#60;/code&#62;, but that shouldn't effect anything since that fires after validation and works just fine without the validation filter.&#60;/p&#62;
&#60;p&#62;Side note, &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook&#34; rel=&#34;nofollow&#34;&#62;Using the Gravity Forms &#34;gform validation&#34; Hook&#60;/a&#62; links to a 404 pastie.org example.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
