<?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: Passing An Affiliate ID into form field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/passing-an-affiliate-id-into-form-field</link>
		<description>Gravity Support Forums Topic: Passing An Affiliate ID into form field</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:49:15 +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/passing-an-affiliate-id-into-form-field" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Passing An Affiliate ID into form field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-an-affiliate-id-into-form-field#post-77702</link>
			<pubDate>Thu, 27 Sep 2012 15:22:27 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">77702@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, I don't understand the issue currently. Is it just not picking up on the Cookied value but it worked when you had it as a hard coded value? Or do you have two things being filed out via the same method?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>henneberryj on "Passing An Affiliate ID into form field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-an-affiliate-id-into-form-field#post-77699</link>
			<pubDate>Thu, 27 Sep 2012 15:07:02 +0000</pubDate>
			<dc:creator>henneberryj</dc:creator>
			<guid isPermaLink="false">77699@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;I tried your passing a hard coded date as per the instructions and it worked. When I modified the code to try and pass the referrer ID it fails. Here's the code:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
add_filter(&#34;gform_field_value_referral&#34;, &#34;populate_referral&#34;);&#60;br /&#62;
function populate_referral($value){&#60;br /&#62;
   return $referrer_id = $_COOKIE['ap_id'];&#60;br /&#62;
}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;Can you please offer some assistance on how I would modify the code (as you can tell I'm just not that familiar with php).&#60;/p&#62;
&#60;p&#62;Thanks very much!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Passing An Affiliate ID into form field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-an-affiliate-id-into-form-field#post-74478</link>
			<pubDate>Sat, 08 Sep 2012 14:48:31 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">74478@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Create the hidden field, go to advanced and put a check mark in the allow field to be populated dynamically and give it a parameter name... then take a look at the following documentation:&#60;/p&#62;
&#60;p&#62;&#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 should be able to then grab your variable value and push it into your hidden field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>henneberryj on "Passing An Affiliate ID into form field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-an-affiliate-id-into-form-field#post-74477</link>
			<pubDate>Sat, 08 Sep 2012 14:46:41 +0000</pubDate>
			<dc:creator>henneberryj</dc:creator>
			<guid isPermaLink="false">74477@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello, &#60;/p&#62;
&#60;p&#62;I use Affiliate Plugin on my Wordpress site and would like to pass the referrer ID into a hidden field.&#60;br /&#62;
The  referrer ID can be retrieved from the affiliate plugin using the following line of code:&#60;/p&#62;
&#60;p&#62;$referrer_id = $_COOKIE['ap_id'];&#60;/p&#62;
&#60;p&#62;Please advise how I can pass this information programmatically into a hidden field?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
