<?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: Problem with populate dynamically</title>
		<link>https://legacy.forums.gravityhelp.com/topic/problem-with-populate-dynamically</link>
		<description>Gravity Support Forums Topic: Problem with populate dynamically</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 18:43: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/problem-with-populate-dynamically" rel="self" type="application/rss+xml" />

		<item>
			<title>imregabri on "Problem with populate dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-with-populate-dynamically#post-9900</link>
			<pubDate>Wed, 15 Sep 2010 09:53:28 +0000</pubDate>
			<dc:creator>imregabri</dc:creator>
			<guid isPermaLink="false">9900@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Here is a simple function:&#60;/p&#62;
&#60;p&#62;in functions.php:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
function populate_finalprice($db){&#60;br /&#62;
  $back= ($db * 2);&#60;br /&#62;
  return $back;&#60;br /&#62;
}&#60;br /&#62;
add_filter(&#34;gform_field_value_final_price&#34;, &#34;populate_finalprice&#34;);&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
My form has a field populated dynamically. Parameter name: final_price&#60;/p&#62;
&#60;p&#62;I call the&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
populate_finalprice(100);&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
&#38;lt;p&#38;gt;function in my code.(page.php)&#38;lt;/p&#38;gt;&#60;br /&#62;
&#38;lt;p&#38;gt;After calling the page(wich includes the form), the field doesn't populated. It's empty.&#38;lt;/p&#38;gt;&#60;br /&#62;
&#38;lt;p&#38;gt;if I change the function to this:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
function populate_finalprice($db){&#60;br /&#62;
  $back= 'test';&#60;br /&#62;
  return $back;&#60;br /&#62;
}&#60;br /&#62;
add_filter(&#34;gform_field_value_final_price&#34;, &#34;populate_finalprice&#34;);&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
The form field is populated with: test.&#60;/p&#62;
&#60;p&#62;Whats the problem with my code?&#60;/p&#62;
&#60;p&#62;Thanks in advanced.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
