<?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: add hidden input</title>
		<link>https://legacy.forums.gravityhelp.com/topic/add-hidden-input</link>
		<description>Gravity Support Forums Topic: add hidden input</description>
		<language>en-US</language>
		<pubDate>Fri, 17 Apr 2026 02:27:57 +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/add-hidden-input" rel="self" type="application/rss+xml" />

		<item>
			<title>Dana Cobb on "add hidden input"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-hidden-input#post-48282</link>
			<pubDate>Fri, 03 Feb 2012 13:56:09 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">48282@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, Melanie_D,&#60;/p&#62;
&#60;p&#62;Take a look at the &#34;gform_field_input&#34; and &#34;gform_field_content&#34; hooks.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_input&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_input&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_content&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_content&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;With those hooks you are able to take a field on your form and completely change it. So you could have a hidden field on your form and then recreate the field's &#38;lt;input&#38;gt; tag. &#60;/p&#62;
&#60;p&#62;Below is an example where I took my hidden tracker field (field 11) on my form (form id 23) and rebuilt the tag:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_field_input&#38;quot;, &#38;quot;tracker&#38;quot;, 10, 5);
function tracker($input, $field, $value, $lead_id, $form_id)
{
	if ($form_id == 23 &#38;amp;&#38;amp; $field[&#38;quot;id&#38;quot;] == 11)
	{
		$input = &#38;#39;&#38;lt;input type=&#38;quot;hidden&#38;quot; id=&#38;quot;hidTracker&#38;quot; name=&#38;quot;hidTracker&#38;quot; value=&#38;quot;test&#38;quot;&#38;gt;&#38;#39;;
		return $input;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;When that runs, the HTML has my new version of the tag.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Melanie_D on "add hidden input"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-hidden-input#post-47009</link>
			<pubDate>Fri, 20 Jan 2012 14:55:55 +0000</pubDate>
			<dc:creator>Melanie_D</dc:creator>
			<guid isPermaLink="false">47009@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a javascript to add a hidden input field to a form, but I'd rather use a hook.  I need to be able to set name, id and value of the input.  This is for tracking only, so GF retaining value is not necessary, only  something that should be read on submission.&#60;br /&#62;
Any ideas?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
