<?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: gform_pre_submission hook not saving data</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_submission-hook-not-saving-data</link>
		<description>Gravity Support Forums Topic: gform_pre_submission hook not saving data</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Apr 2026 12:32: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/gform_pre_submission-hook-not-saving-data" rel="self" type="application/rss+xml" />

		<item>
			<title>glasgoweb on "gform_pre_submission hook not saving data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_submission-hook-not-saving-data#post-347840</link>
			<pubDate>Thu, 27 Jun 2013 09:00:11 +0000</pubDate>
			<dc:creator>glasgoweb</dc:creator>
			<guid isPermaLink="false">347840@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ahh ok cheers David - got it working!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "gform_pre_submission hook not saving data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_submission-hook-not-saving-data#post-345924</link>
			<pubDate>Wed, 26 Jun 2013 11:12:02 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">345924@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It won't save because that field is set-up for a specific data type. If you tried to save your new date value in a hidden text field, it would work because that field would accept any values.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>glasgoweb on "gform_pre_submission hook not saving data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_pre_submission-hook-not-saving-data#post-345689</link>
			<pubDate>Wed, 26 Jun 2013 07:54:52 +0000</pubDate>
			<dc:creator>glasgoweb</dc:creator>
			<guid isPermaLink="false">345689@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;HI there,&#60;/p&#62;
&#60;p&#62;I'm trying to use the gform_pre_submission hook to convert a date field into a different format.&#60;/p&#62;
&#60;p&#62;I'm using the following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_pre_submission&#38;quot;, &#38;quot;pre_submission_handler&#38;quot;, 10, 2);

function pre_submission_handler($form){
    date_default_timezone_set(&#38;#39;UTC&#38;#39;);
    $date = $_POST[&#38;quot;input_4&#38;quot;];
    $date = date(&#38;#39;l jS M&#38;#39;, strtotime($date));
    $_POST[&#38;quot;input_4&#38;quot;] = $date;
    die(var_dump($_POST));
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;When I perform a vardump of the $_POST variable it gives the right info:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[&#38;quot;input_4&#38;quot;]=&#38;gt; string(17) &#38;quot;Saturday 29th Jun&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but it doesn't seem to save it. In the entries page the Date column is left blank. &#60;/p&#62;
&#60;p&#62;Any thoughts?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
