<?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: Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating</title>
		<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating</link>
		<description>Gravity Support Forums Topic: Neither &quot;date&quot; nor &quot;confirm email&quot; fields are pre-populating</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 16:20:56 +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/neither-date-nor-confirm-email-fields-are-pre-populating" rel="self" type="application/rss+xml" />

		<item>
			<title>Jamie M on "Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating#post-51175</link>
			<pubDate>Fri, 02 Mar 2012 17:59:56 +0000</pubDate>
			<dc:creator>Jamie M</dc:creator>
			<guid isPermaLink="false">51175@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The issue on my second to last message was due to Magic Quotes. Disabled them, and now things are looking brighter.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jamie M on "Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating#post-51102</link>
			<pubDate>Fri, 02 Mar 2012 04:49:43 +0000</pubDate>
			<dc:creator>Jamie M</dc:creator>
			<guid isPermaLink="false">51102@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Crap, another problem. I just changed my theme, and the code you gave me to fill in the 'confirm email' field no longer works. Any ideas? Is there another way to do this, perhaps in the functions.php file?&#60;/p&#62;
&#60;p&#62;PS: I've discovered that the new theme I'm using screws up the ampersand (&#38;amp;) character, therefore the JS above won't work. Also, many of my list items have &#34;&#38;amp;&#34; in them, so the conditional logic is also screwed up. Oh why can't life be easy :(
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jamie M on "Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating#post-51064</link>
			<pubDate>Thu, 01 Mar 2012 18:20:13 +0000</pubDate>
			<dc:creator>Jamie M</dc:creator>
			<guid isPermaLink="false">51064@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Alex,&#60;/p&#62;
&#60;p&#62;I used it like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_name&#38;quot;, &#38;quot;populate_name&#38;quot;);
function populate_name() {
	return stripslashes($_COOKIE[&#38;quot;gf_name&#38;quot;]);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;... and it removed one slash. So the result was: Pak \'n Save
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating#post-51063</link>
			<pubDate>Thu, 01 Mar 2012 18:12:09 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">51063@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;try using stripslashes() when accessing the $_COOKIE variable.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;stripslashes($_COOKIE[&#38;quot;gf_email&#38;quot;])&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Jamie M on "Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating#post-50997</link>
			<pubDate>Thu, 01 Mar 2012 05:12:57 +0000</pubDate>
			<dc:creator>Jamie M</dc:creator>
			<guid isPermaLink="false">50997@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Cool thanks :)&#60;/p&#62;
&#60;p&#62;One more thing...&#60;/p&#62;
&#60;p&#62;When I type in something like, Pak 'n Save, it will be repopulated via cookies as Pak \\\'n Save.&#60;/p&#62;
&#60;p&#62;Any idea how I can correct this? It will be a real nuisance when collating data.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating#post-50951</link>
			<pubDate>Wed, 29 Feb 2012 16:23:04 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">50951@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If your WP install has some custom values for the cookie path and cookie domain, you should use the first call. If you haven't changed those values, the second (simpler) call should do the trick since it will just use default values for those variables.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jamie M on "Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating#post-50949</link>
			<pubDate>Wed, 29 Feb 2012 16:06:37 +0000</pubDate>
			<dc:creator>Jamie M</dc:creator>
			<guid isPermaLink="false">50949@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;.... I used backticks (`) but it didn't work
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jamie M on "Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating#post-50948</link>
			<pubDate>Wed, 29 Feb 2012 16:05:33 +0000</pubDate>
			<dc:creator>Jamie M</dc:creator>
			<guid isPermaLink="false">50948@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks very much, that worked perfectly. To check though, I was before using:&#60;br /&#62;
&#60;code&#62;setcookie(&#38;quot;gf_&#38;quot;.$field[&#38;quot;inputName&#38;quot;], $_POST[&#38;quot;input_&#38;quot; . $field[&#38;quot;id&#38;quot;]], time() + 31536000, COOKIEPATH, COOKIE_DOMAIN, false, true);&#60;/code&#62;&#60;br /&#62;
However I am now using your code:&#60;br /&#62;
&#60;code&#62;setcookie(&#38;quot;gf_&#38;quot;.$field[&#38;quot;inputName&#38;quot;], $val);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;What's the most fundamental difference here? Anything I need to worry about?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating#post-50857</link>
			<pubDate>Tue, 28 Feb 2012 16:41:25 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">50857@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello James,&#60;br /&#62;
The drop down date is posted as an array, so you need to serialize it when adding to the cookie, and then format it properly in your gform_field_value_XXX hook.&#60;/p&#62;
&#60;p&#62;Following is a code snippet to get you going.&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/3482875&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/3482875&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;As far as the confirmation email, you will need to use jQuery to do the trick. The easiest way to do that is to add an HTML block field to your form and paste the following code snippet in it. (Make sure to change the IDs to the appropriate values. See comments in the code snippet).&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/3482898&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/3482898&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Neither &#34;date&#34; nor &#34;confirm email&#34; fields are pre-populating"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/neither-date-nor-confirm-email-fields-are-pre-populating#post-50747</link>
			<pubDate>Mon, 27 Feb 2012 20:07:25 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">50747@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have forwarded this forum post to Alex who will respond shortly.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
