<?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_field_value_ filter firing twice</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_field_value_-filter-firing-twice</link>
		<description>Gravity Support Forums Topic: Gform_field_value_ filter firing twice</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 00:51:18 +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/gform_field_value_-filter-firing-twice" rel="self" type="application/rss+xml" />

		<item>
			<title>Miramedia on "Gform_field_value_ filter firing twice"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_field_value_-filter-firing-twice#post-65000</link>
			<pubDate>Fri, 06 Jul 2012 10:13:53 +0000</pubDate>
			<dc:creator>Miramedia</dc:creator>
			<guid isPermaLink="false">65000@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a form with a trigger on it. The gform_field_value_ filter triggers twice: once for the form and once for the javascript. It does so without passing in the value from the previous pass.&#60;/p&#62;
&#60;p&#62;I need to do something like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;gform_field_value_my_rand&#38;#39;, &#38;#39;gform_field_value_my_rand&#38;#39; );
function gform_field_value_my_rand( $value ){
  if( !$value ) :
    $value = &#38;#39;sliceofcheese&#38;#39; . sprintf( &#38;quot;%05d&#38;quot;, rand(0,99999) );
   endif;
  return $value;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is this deliberate behaviour?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
