<?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: Custom fields not posting properly</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-fields-not-posting-properly</link>
		<description>Gravity Support Forums Topic: Custom fields not posting properly</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 09:30:59 +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/custom-fields-not-posting-properly" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Custom fields not posting properly"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-fields-not-posting-properly#post-46043</link>
			<pubDate>Tue, 10 Jan 2012 19:28:24 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46043@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for posting your solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>plymouthstate on "Custom fields not posting properly"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-fields-not-posting-properly#post-45731</link>
			<pubDate>Fri, 06 Jan 2012 17:29:26 +0000</pubDate>
			<dc:creator>plymouthstate</dc:creator>
			<guid isPermaLink="false">45731@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I got it, after crawling through the source code I found a hook that is not mentioned in the documentation!&#60;br /&#62;
For all those having the same issue, you need to define all inputs in the new field with javascript in a case that is buried in the source code.  Luckily there is a hook, which can be implemented as I show below:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_filter(&#38;#39;gform_editor_js_set_default_values&#38;#39;, &#38;#39;add_custom_default_values&#38;#39;);
function add_custom_default_values () {
?&#38;gt;
   case &#38;quot;multi_input_field&#38;quot; :
      field.inputs = [  new Input( field.id + 0.1, &#38;#39;&#38;lt;?php echo esc_js(__(&#38;quot;First&#38;quot;, &#38;quot;gravityforms&#38;quot;)); ?&#38;gt;&#38;#39;);
                             new Input( field.id + 0.2, &#38;#39;&#38;lt;?php echo esc_js(__(&#38;quot;Second&#38;quot;, &#38;quot;gravityforms&#38;quot;)); ?&#38;gt;&#38;#39;);
                             new Input( field.id + 0.3, &#38;#39;&#38;lt;?php echo esc_js(__(&#38;quot;Third&#38;quot;, &#38;quot;gravityforms&#38;quot;)); ?&#38;gt;&#38;#39;);
                    ]
      break
&#38;lt;?php } ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>plymouthstate on "Custom fields not posting properly"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-fields-not-posting-properly#post-45615</link>
			<pubDate>Thu, 05 Jan 2012 14:32:09 +0000</pubDate>
			<dc:creator>plymouthstate</dc:creator>
			<guid isPermaLink="false">45615@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have built a few custom fields that have multiple inputs (First, Middle, Last, Maiden Names).  It is displaying properly, and as far as I can tell the naming convention looks right...however when the form is submitted the values in the fields are not being posted.  I noticed that in the $form that I got from the gform_post_submission hook, that the input for the fields was empty, while the stock form[fields][inputs] pieces all had arrays listing the different input pieces within the field.  What do I need to do so that the input will properly update with the fields I want in it?&#60;/p&#62;
&#60;p&#62;See below for the current html of how my custom field is being put into the page.&#60;br /&#62;
Thanks in advance for any help!&#60;/p&#62;
&#60;p&#62;Edit: Additional Info:&#60;br /&#62;
To put my custom field into the interface I use gform_add_field_buttons to put it in, gform_field_type_title to give it a title and gform_field_input to modify what it looks like.  For the gform_field_input function all I do is create the HTML, based on the current form id and the id of the field to build the id's and names of all the html tags.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;ginput_complex ginput_container&#38;quot; id=&#38;quot;input_3_3_3&#38;quot;&#38;gt;
   &#38;lt;span id=&#38;quot;input_3_3_3_container&#38;quot;&#38;gt;
      &#38;lt;input type=&#38;quot;text&#38;quot; name=&#38;quot;input_3.3&#38;quot; id=&#38;quot;input_3_3_3&#38;quot; value=&#38;quot;test&#38;quot;&#38;gt;
      &#38;lt;label for=&#38;quot;input_3_3_3&#38;quot;&#38;gt; First &#38;lt;/label&#38;gt;
   &#38;lt;/span&#38;gt; 

   &#38;lt;span id=&#38;quot;input_3_3_6_container&#38;quot;&#38;gt;
      &#38;lt;input type=&#38;quot;text&#38;quot; name=&#38;quot;input_3.6&#38;quot; id=&#38;quot;input_3_3_6&#38;quot; value=&#38;quot;&#38;quot;&#38;gt;
        &#38;lt;label for=&#38;quot;input_3_3_6&#38;quot;&#38;gt; MI &#38;lt;/label&#38;gt;
   &#38;lt;/span&#38;gt;

   &#38;lt;span id=&#38;quot;input_3_3_9_container&#38;quot;&#38;gt;
      &#38;lt;input type=&#38;quot;text&#38;quot; name=&#38;quot;input_3.9&#38;quot; id=&#38;quot;input_3_3_9&#38;quot;&#38;gt;
      &#38;lt;label for=&#38;quot;input_3_3_9&#38;quot;&#38;gt; Last &#38;lt;/label&#38;gt;
   &#38;lt;/span&#38;gt;
   &#38;lt;span id=&#38;quot;input_3_3_12_container&#38;quot;&#38;gt;
      &#38;lt;input type=&#38;quot;text&#38;quot; name=&#38;quot;input_3.12&#38;quot; id=&#38;quot;input_3_3_12&#38;quot;&#38;gt;
      &#38;lt;label for=&#38;quot;input_3_3_12&#38;quot;&#38;gt; Maiden &#38;lt;/label&#38;gt;
   &#38;lt;/span&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
