<?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: Use gform_pre_submission to combine two fields</title>
		<link>https://legacy.forums.gravityhelp.com/topic/use-gform_pre_submission-to-combine-two-fields</link>
		<description>Gravity Support Forums Topic: Use gform_pre_submission to combine two fields</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:23:34 +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/use-gform_pre_submission-to-combine-two-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Use gform_pre_submission to combine two fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-gform_pre_submission-to-combine-two-fields#post-290472</link>
			<pubDate>Thu, 30 May 2013 19:11:11 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">290472@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad you got it to work. All my best!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>elurie on "Use gform_pre_submission to combine two fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-gform_pre_submission-to-combine-two-fields#post-290435</link>
			<pubDate>Thu, 30 May 2013 18:50:58 +0000</pubDate>
			<dc:creator>elurie</dc:creator>
			<guid isPermaLink="false">290435@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I fixed it, It works now. YEA!&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#38;quot;gform_pre_submission&#38;quot;, &#38;quot;birthday&#38;quot;);
function birthday(){
    $_POST[&#38;quot;input_85&#38;quot;]  = $_POST[&#38;quot;input_81&#38;quot;].&#38;quot;/&#38;quot;.$_POST[&#38;quot;input_83&#38;quot;];
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>elurie on "Use gform_pre_submission to combine two fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-gform_pre_submission-to-combine-two-fields#post-287063</link>
			<pubDate>Wed, 29 May 2013 15:39:06 +0000</pubDate>
			<dc:creator>elurie</dc:creator>
			<guid isPermaLink="false">287063@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;br /&#62;
I separated the birthday field into two text fields for MailChimp. These fields are:  id 83, birth_month_day, and id 81, birthyear.&#60;/p&#62;
&#60;p&#62;Now, i'd like to use the gform_pre_submission hook to automatically show a birthday field that results in 83 plus 81. i.e. field id 85 shows mm/dd/yyyy.  I am not a coder, but am making feeble attempts to do this. 2 of 3 forms have these age fields, the form ids are 7 and 11.&#60;/p&#62;
&#60;p&#62; Here is the gform_pre_submission example with my field ids.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#38;quot;gform_pre_submission&#38;quot;, &#38;quot;birthday&#38;quot;);
function birthday(){
    $_POST[&#38;quot;input_85&#38;quot;]  = &#38;quot;input_81&#38;quot;&#38;amp;&#38;quot;/&#38;quot;&#38;amp;&#38;quot;input_83&#38;quot;;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and—in the new birthday field, id 85,  I have populate dynamically with the parameter, birthday. It is returning ) in the birthday field.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
