<?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: Trouble with Gform field value $parameter name</title>
		<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-gform-field-value-parameter-name</link>
		<description>Gravity Support Forums Topic: Trouble with Gform field value $parameter name</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 22:29:59 +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/trouble-with-gform-field-value-parameter-name" rel="self" type="application/rss+xml" />

		<item>
			<title>Perhaps on "Trouble with Gform field value $parameter name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-gform-field-value-parameter-name#post-27161</link>
			<pubDate>Tue, 07 Jun 2011 04:37:31 +0000</pubDate>
			<dc:creator>Perhaps</dc:creator>
			<guid isPermaLink="false">27161@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I found the problem. I don't know if you are familiar with the &#60;a href=&#34;http://podscms.org/&#34; rel=&#34;nofollow&#34;&#62;Pods plugin&#60;/a&#62;. Anyway, your lovely code worked fine on a normal Wordpress page template. But moving the same page template to the pods page caused the $client_email not to show. Its weird because if I put $client_email = &#34;test@test.com&#34;; in the functions file, it works fine. Its just if I try to declare $client_email = &#34;test@test.com&#34;; in the page template file that doesn't work. It must be to do with the way pods executes pages that isn't reading something. &#60;/p&#62;
&#60;p&#62;Anyway thanks for your help. I really appreciate it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Trouble with Gform field value $parameter name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-gform-field-value-parameter-name#post-27112</link>
			<pubDate>Mon, 06 Jun 2011 14:02:07 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">27112@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Could you create a &#60;a href=&#34;http://pastie.org&#34; rel=&#34;nofollow&#34;&#62;pastie&#60;/a&#62; with your page template code?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Perhaps on "Trouble with Gform field value $parameter name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-gform-field-value-parameter-name#post-27077</link>
			<pubDate>Mon, 06 Jun 2011 06:57:39 +0000</pubDate>
			<dc:creator>Perhaps</dc:creator>
			<guid isPermaLink="false">27077@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David, I'm sorry it took so long to reply I was on holiday without a computer. Your code works if..&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$client_email = &#38;quot;test@test.com&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;is placed in the functions.php file. But it stops working as soon as I place it in the page template. Its weird, because I can echo $client_email and it shows fine, its just not connecting with gravity forms.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Trouble with Gform field value $parameter name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-gform-field-value-parameter-name#post-26412</link>
			<pubDate>Thu, 26 May 2011 15:22:28 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">26412@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you declare this variable anywhere above the form in your page template:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$client_email = &#38;quot;test@test.com&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;...and then leave the following in your &#60;em&#62;functions.php&#60;/em&#62;, it should do the trick.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;quot;gform_field_value_email&#38;quot;, &#38;quot;populate_email&#38;quot;);
function populate_email($value){
    global $client_email;
    return $client_email;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Since the &#60;strong&#62;gform_field_value_XX&#60;/strong&#62; filter runs after we've declared our &#60;strong&#62;$client_email&#60;/strong&#62;, the populate email filter should get the updated value based on the page.&#60;/p&#62;
&#60;p&#62;Let me know how it goes.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Perhaps on "Trouble with Gform field value $parameter name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-gform-field-value-parameter-name#post-26360</link>
			<pubDate>Thu, 26 May 2011 05:40:43 +0000</pubDate>
			<dc:creator>Perhaps</dc:creator>
			<guid isPermaLink="false">26360@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello David. I appreciate the help. Your solution works. I am just having a little difficulty tying the funtions.php file with the page template file. I realise this falls out of the gravity forms scope and more into the general php help... but if you can help anyway it will be appriciated :)&#60;/p&#62;
&#60;p&#62;Placing the below in the function.php file works.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$client_email = &#38;quot;lol&#38;quot;;
$testyo = $client_email;
add_filter(&#38;quot;gform_field_value_email&#38;quot;, &#38;quot;populate_email&#38;quot;);
function populate_email($value){
    global $testyo;
    return $testyo;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However $client_email is defined in the page template file (as this differs on a page by page basis). I tried the below in the functions.php file&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php add_filter(&#38;quot;gform_field_value_email&#38;quot;, &#38;quot;populate_email&#38;quot;);
function populate_email($value){
    global $value;
    return $value;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and the below in the page template file&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;php
populate_email($client_email);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But that didn't seem to work. I probably don't understand the correct usage. I'm just playing a guessing game at the moment.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Trouble with Gform field value $parameter name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-gform-field-value-parameter-name#post-26285</link>
			<pubDate>Wed, 25 May 2011 11:08:43 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">26285@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$testyo = $client_email;
add_filter(&#38;quot;gform_field_value_email&#38;quot;, &#38;quot;populate_email&#38;quot;);
function populate_email($value){
    global $testyo;
    return $testyo;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Perhaps on "Trouble with Gform field value $parameter name"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/trouble-with-gform-field-value-parameter-name#post-26275</link>
			<pubDate>Wed, 25 May 2011 09:05:08 +0000</pubDate>
			<dc:creator>Perhaps</dc:creator>
			<guid isPermaLink="false">26275@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Greetings, Unfortunately im not that great with PHP and my searching has yielded nothing. I am trying to &#34;dynamically&#34; fill in a field using the &#34;Gform field value $parameter name&#34;.  It works fine except I'd like to use a php variable (? i think it would be called that) e.g.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_filter(&#38;quot;gform_field_value_email&#38;quot;, &#38;quot;populate_email&#38;quot;);
function populate_email($value){
	$testyo = &#38;quot;blah&#38;quot;;
   	return $testyo;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The above works.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$testyo = $client_email;
add_filter(&#38;quot;gform_field_value_email&#38;quot;, &#38;quot;populate_email&#38;quot;);
function populate_email($value){
   	return $testyo;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But the above won't work. The $client_email is something that's defined further up. I'm sure the solution is simple and I'd appreciate any help. Forgive my ignorance.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
