<?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: How to save data in the database by using the pre_submission_handler</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-save-data-in-the-database-by-using-the-pre_submission_handler</link>
		<description>Gravity Support Forums Topic: How to save data in the database by using the pre_submission_handler</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 10:14:05 +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/how-to-save-data-in-the-database-by-using-the-pre_submission_handler" rel="self" type="application/rss+xml" />

		<item>
			<title>Vivek Saini on "How to save data in the database by using the pre_submission_handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-save-data-in-the-database-by-using-the-pre_submission_handler#post-19698</link>
			<pubDate>Wed, 02 Mar 2011 06:41:10 +0000</pubDate>
			<dc:creator>Vivek Saini</dc:creator>
			<guid isPermaLink="false">19698@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you so much Carl Hancock now every things is fine.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How to save data in the database by using the pre_submission_handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-save-data-in-the-database-by-using-the-pre_submission_handler#post-19641</link>
			<pubDate>Tue, 01 Mar 2011 11:35:55 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">19641@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is an example of the gform_pre_submission hook which shows changing a form field value, which then gets stored as that field value in the entry data.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

add_action(&#38;quot;gform_pre_submission&#38;quot;, &#38;quot;pre_submission_handler&#38;quot;);
function pre_submission_handler($form){
    $_POST[&#38;quot;input_14&#38;quot;] = &#38;quot;new value for field 14&#38;quot;;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This example would apply this change to ALL forms.  Probably not what you want to do.  You want to specify a specific form id by appending it to gform_pre_submission like so:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

add_action(&#38;quot;gform_pre_submission_5&#38;quot;, &#38;quot;pre_submission_handler&#38;quot;);
function pre_submission_handler($form){
    $_POST[&#38;quot;input_14&#38;quot;] = &#38;quot;new value for field 14&#38;quot;;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Notice the _5 in the gform_pre_submission action call above.  This it the form id the code will be applied to.&#60;/p&#62;
&#60;p&#62;The example above shows how to change an input value.  Doing the above would change it's value and it would then be stored in the entry table.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vivek Saini on "How to save data in the database by using the pre_submission_handler"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-save-data-in-the-database-by-using-the-pre_submission_handler#post-19629</link>
			<pubDate>Tue, 01 Mar 2011 10:03:42 +0000</pubDate>
			<dc:creator>Vivek Saini</dc:creator>
			<guid isPermaLink="false">19629@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I  am using  the following hook for extracting the value of a field and i want to save the data for this field in the database.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1620702&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1620702&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
