<?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: Saving multiple input fields generated via gform_field_input hook</title>
		<link>https://legacy.forums.gravityhelp.com/topic/saving-multiple-input-fields-generated-via-gform_field_input-hook</link>
		<description>Gravity Support Forums Topic: Saving multiple input fields generated via gform_field_input hook</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:41:55 +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/saving-multiple-input-fields-generated-via-gform_field_input-hook" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Saving multiple input fields generated via gform_field_input hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-multiple-input-fields-generated-via-gform_field_input-hook#post-144226</link>
			<pubDate>Thu, 07 Feb 2013 12:14:52 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">144226@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Let us know if you need more help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sepehr125 on "Saving multiple input fields generated via gform_field_input hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-multiple-input-fields-generated-via-gform_field_input-hook#post-143978</link>
			<pubDate>Thu, 07 Feb 2013 04:01:39 +0000</pubDate>
			<dc:creator>sepehr125</dc:creator>
			<guid isPermaLink="false">143978@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Chris, thanks much for the tip, I'll try the the list field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Saving multiple input fields generated via gform_field_input hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-multiple-input-fields-generated-via-gform_field_input-hook#post-142657</link>
			<pubDate>Tue, 05 Feb 2013 14:10:44 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">142657@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I heard back from one of the developers today:&#60;/p&#62;
&#60;p&#62;Gravity Forms relies on the input's name attribute to save entries, so you have two problems:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;You have hard-coded the input name (ie. name=&#34;field_1_9&#34;).  These need to be named in the format: &#34;input_FORMID_FIELDID&#34;&#60;/li&#62;
&#60;li&#62;You have multiple inputs associated with one field, so the easiest thing to do is to create a single hidden input, named following the GF naming convention (i.e. input_FORMID_FIELDID), and then use Javascript to populate this hidden input when the other input fields change.&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;Also, I think it will make more sense to use a single column list field instead, and then use gform_field_value_$parameter_name to populate the list field. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This will likely work much better for you.  If you need additional help, please let us know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Saving multiple input fields generated via gform_field_input hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-multiple-input-fields-generated-via-gform_field_input-hook#post-140728</link>
			<pubDate>Sun, 03 Feb 2013 21:50:42 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">140728@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll ask the development team about this one for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sepehr125 on "Saving multiple input fields generated via gform_field_input hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-multiple-input-fields-generated-via-gform_field_input-hook#post-137720</link>
			<pubDate>Thu, 31 Jan 2013 16:12:05 +0000</pubDate>
			<dc:creator>sepehr125</dc:creator>
			<guid isPermaLink="false">137720@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm having a function generate a number of input fields to overwrite a &#34;Single Line Text&#34; input field, which has a CSS class &#34;subsection&#34;:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;gform_field_input&#38;#39;, &#38;#39;gform_cart_subsection&#38;#39;, 10, 5);

function gform_cart_subsection($input, $field, $value, $lead_id, $form_id){
    if($field[&#38;quot;cssClass&#38;quot;] == &#38;quot;subsection&#38;quot;){

        $favs = // array including post ID&#38;#39;s added to favorites, stored in a cookie ;

		foreach ( array_keys ($favs) as $fav){
			$input .= &#38;#39;&#38;lt;label for=&#38;quot;fav&#38;#39; . $fav . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . get_the_title($fav) . &#38;#39;&#38;lt;/label&#38;gt;&#38;lt;input name=&#38;quot;field_1_9&#38;quot; id=&#38;quot;fav&#38;#39; . $fav . &#38;#39;&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;Add a note...&#38;quot;&#38;gt;&#38;lt;br/&#38;gt;&#38;#39;;
		}
    }
    return $input;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The form shows up fine on the front-end, but after submission, the content of the input fields generated do not show up in the Entry on the back-end. &#60;/p&#62;
&#60;p&#62;I've tried json encoding as recommended by this post:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/cant-submit-input-name-array-to-show-up-in-entry-list&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/cant-submit-input-name-array-to-show-up-in-entry-list&#60;/a&#62;&#60;br /&#62;
to no avail. What do you have to do after creating a &#34;custom input&#34; in order to save the submission?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Sepehr
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
