<?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: gform_validation filters don&#039;t seem to be picking up form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/where-to-place-gform_validation-filters</link>
		<description>Gravity Support Forums Topic: gform_validation filters don&#039;t seem to be picking up form</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Apr 2026 03:11:16 +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/where-to-place-gform_validation-filters" rel="self" type="application/rss+xml" />

		<item>
			<title>Kevin Flahaut on "gform_validation filters don&#039;t seem to be picking up form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-to-place-gform_validation-filters#post-32903</link>
			<pubDate>Thu, 18 Aug 2011 12:32:05 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">32903@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;LOL. Okay Tom. Hope you get to feeling better.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Luminex Corporation on "gform_validation filters don&#039;t seem to be picking up form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-to-place-gform_validation-filters#post-32901</link>
			<pubDate>Thu, 18 Aug 2011 12:11:30 +0000</pubDate>
			<dc:creator>Luminex Corporation</dc:creator>
			<guid isPermaLink="false">32901@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You know what, never mind.  I've got a nasty head cold that is making me stupid.  I am editing the code on the wrong box.  Thanks for your help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Luminex Corporation on "gform_validation filters don&#039;t seem to be picking up form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-to-place-gform_validation-filters#post-32900</link>
			<pubDate>Thu, 18 Aug 2011 12:07:42 +0000</pubDate>
			<dc:creator>Luminex Corporation</dc:creator>
			<guid isPermaLink="false">32900@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, I saw it belatedly.  Then I went back and modified the post since that is where I put it and it still doesn't seem to be applying the filter.&#60;/p&#62;
&#60;p&#62;I would have deleted the post and started over but that wasn't an option.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "gform_validation filters don&#039;t seem to be picking up form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-to-place-gform_validation-filters#post-32898</link>
			<pubDate>Thu, 18 Aug 2011 12:00:17 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">32898@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Those should go in the functions.php file in your theme folder.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Luminex Corporation on "gform_validation filters don&#039;t seem to be picking up form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-to-place-gform_validation-filters#post-32893</link>
			<pubDate>Thu, 18 Aug 2011 11:30:27 +0000</pubDate>
			<dc:creator>Luminex Corporation</dc:creator>
			<guid isPermaLink="false">32893@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not sure Gravity Forms is picking up my custom validation.  I've added it to the functions.php file of the theme at the end of the file.  I'm not getting any PHP errors but it doesn't seem to be working.  For the validations filter function I'm using the example and have only modified the items below.  I tested out the actual validation function (is_serial) separately and it functions correctly.  I have no idea why it's not picking up the form data or applying the filter.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_validation_13&#38;#39;, &#38;#39;lx_validate_serial&#38;#39;, 10, 2);

function lx_validate_serial($validation_result) {&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;... same as example code ...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;// If the field does not have our designated CSS class, skip it
if(strpos($field[&#38;#39;cssClass&#38;#39;], &#38;#39;lx_serial&#38;#39;) === false)&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;... same as example code ...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;// Make a call to your validation function to validate the value
$is_valid = is_serial($field_value);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;... same as example code ...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$field[&#38;#39;validation_message&#38;#39;] = &#38;#39;The serial number you have entered is not valid.  Please verify the serial number on your device&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;... same as example code ...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
