<?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: Outputting a PHP echo in a hidden field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/outputting-a-php-echo-in-a-hidden-field</link>
		<description>Gravity Support Forums Topic: Outputting a PHP echo in a hidden field</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:36:43 +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/outputting-a-php-echo-in-a-hidden-field" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Outputting a PHP echo in a hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/outputting-a-php-echo-in-a-hidden-field#post-167813</link>
			<pubDate>Mon, 11 Mar 2013 12:14:29 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">167813@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hopefully, he's been able to figure it out by now, and just hasn't returned to let us know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rcDev on "Outputting a PHP echo in a hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/outputting-a-php-echo-in-a-hidden-field#post-167803</link>
			<pubDate>Mon, 11 Mar 2013 12:08:50 +0000</pubDate>
			<dc:creator>rcDev</dc:creator>
			<guid isPermaLink="false">167803@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Did you set it to &#34;Allow field to be populated dynamically&#34; and make the parameter name &#34;url&#34;?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>511 Capital on "Outputting a PHP echo in a hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/outputting-a-php-echo-in-a-hidden-field#post-162253</link>
			<pubDate>Wed, 06 Mar 2013 16:59:39 +0000</pubDate>
			<dc:creator>511 Capital</dc:creator>
			<guid isPermaLink="false">162253@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That didn't work either. :(
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Outputting a PHP echo in a hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/outputting-a-php-echo-in-a-hidden-field#post-162252</link>
			<pubDate>Wed, 06 Mar 2013 16:56:37 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">162252@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you try&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;return &#38;quot;test value&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;To make sure your function is working as expected.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>511 Capital on "Outputting a PHP echo in a hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/outputting-a-php-echo-in-a-hidden-field#post-162249</link>
			<pubDate>Wed, 06 Mar 2013 16:42:48 +0000</pubDate>
			<dc:creator>511 Capital</dc:creator>
			<guid isPermaLink="false">162249@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I added this code to functions.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_url&#38;quot;, &#38;quot;populate_url&#38;quot;);
function populate_url($value){
   return $visited_pages_string;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and created a hidden field called &#34;url&#34; a chcked &#34;Allow field to be populated dynamically&#34; and entered the parameter name &#34;url&#34; and it's just outputting an empty value in the &#38;lt;input&#38;gt; tag.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Outputting a PHP echo in a hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/outputting-a-php-echo-in-a-hidden-field#post-162247</link>
			<pubDate>Wed, 06 Mar 2013 16:32:12 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">162247@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would want&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;return $visited_pages_string;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>511 Capital on "Outputting a PHP echo in a hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/outputting-a-php-echo-in-a-hidden-field#post-162245</link>
			<pubDate>Wed, 06 Mar 2013 16:28:01 +0000</pubDate>
			<dc:creator>511 Capital</dc:creator>
			<guid isPermaLink="false">162245@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@David Thanks!&#60;/p&#62;
&#60;p&#62;Forgive me, but I'm not a PHP programmer. I believe I understand that I need replace &#34;date&#34; in the example code on that page so it looks like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_filter(&#38;quot;gform_field_value_url&#38;quot;, &#38;quot;populate_url&#38;quot;);
function populate_url($value){
   return &#38;quot;10/10/2010&#38;quot;;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But I'm not sure what I would put in &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$value&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;or &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;return &#38;quot;10/10/2010&#38;quot;;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Outputting a PHP echo in a hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/outputting-a-php-echo-in-a-hidden-field#post-162243</link>
			<pubDate>Wed, 06 Mar 2013 16:19:17 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">162243@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Have a look at this hook: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You'll want to put any PHP code in the theme's functions.php file. All my best!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>511 Capital on "Outputting a PHP echo in a hidden field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/outputting-a-php-echo-in-a-hidden-field#post-162241</link>
			<pubDate>Wed, 06 Mar 2013 16:04:54 +0000</pubDate>
			<dc:creator>511 Capital</dc:creator>
			<guid isPermaLink="false">162241@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there an easy way to get this PHP echo to output in a hidden field?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php echo $visited_pages_string  ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The tooltip next to the &#34;Allow fields to be populated dynamically&#34; seems to indicate I can insert a shortcode there; but I tried tried putting it in a hidden field's default value as both PHP code and a shortcode, but that didn't work.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
