<?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: Can&#039;t submit input name array to show up in Entry List</title>
		<link>https://legacy.forums.gravityhelp.com/topic/cant-submit-input-name-array-to-show-up-in-entry-list</link>
		<description>Gravity Support Forums Topic: Can&#039;t submit input name array to show up in Entry List</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 09:40:04 +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/cant-submit-input-name-array-to-show-up-in-entry-list" rel="self" type="application/rss+xml" />

		<item>
			<title>sepehr125 on "Can&#039;t submit input name array to show up in Entry List"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-submit-input-name-array-to-show-up-in-entry-list#post-139833</link>
			<pubDate>Sat, 02 Feb 2013 15:35:24 +0000</pubDate>
			<dc:creator>sepehr125</dc:creator>
			<guid isPermaLink="false">139833@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris, the code is in functions.php, and &#34;null&#34; shows up in the Entries page, under the column heading &#34;Shopping List&#34;, which is the input I am modifying (ID#4, CSS .subsection).  On the front-end, my complete HTML looks like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;li id=&#38;quot;field_1_4&#38;quot; class=&#38;quot;gfield    subsection&#38;quot;&#38;gt;

&#38;lt;label class=&#38;quot;gfield_label&#38;quot; for=&#38;quot;input_1_4&#38;quot;&#38;gt;Shopping List&#38;lt;/label&#38;gt;&#38;lt;br&#38;gt;

&#38;lt;label for=&#38;quot;fav5454&#38;quot;&#38;gt;CTC Analytics / Leap Technologies CombiPAL Headspace Autosampler&#38;lt;/label&#38;gt;&#38;lt;input style=&#38;quot;width: 98%&#38;quot; name=&#38;quot;field_4[]&#38;quot; id=&#38;quot;fav5454&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;Add question...&#38;quot;&#38;gt;&#38;lt;br&#38;gt;

&#38;lt;label for=&#38;quot;fav5370&#38;quot;&#38;gt;CTC Analytics / Leap Technologies Combi PAL Autosampler for Liquid and Headspace Injections&#38;lt;/label&#38;gt;&#38;lt;input style=&#38;quot;width: 98%&#38;quot; name=&#38;quot;field_4[]&#38;quot; id=&#38;quot;fav5370&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;Add question...&#38;quot;&#38;gt;&#38;lt;br&#38;gt;

&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Anything glaringly wrong? Thanks in advance.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can&#039;t submit input name array to show up in Entry List"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-submit-input-name-array-to-show-up-in-entry-list#post-139102</link>
			<pubDate>Fri, 01 Feb 2013 23:54:15 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">139102@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you show us where you are using this code?  And what is coming up with NULL values?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sepehr125 on "Can&#039;t submit input name array to show up in Entry List"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-submit-input-name-array-to-show-up-in-entry-list#post-139099</link>
			<pubDate>Fri, 01 Feb 2013 23:51:41 +0000</pubDate>
			<dc:creator>sepehr125</dc:creator>
			<guid isPermaLink="false">139099@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm trying to do exactly the same thing but getting &#34;null&#34; value in return.  My input fields look like:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;input name=&#38;quot;field_4[]&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;Add note...&#38;quot;&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and I'm otherwise basically using wlcx code, just replacing 2 with 4. My full code is at the pastebin link below:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastebin.com/xRDNmGk3&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/xRDNmGk3&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The field I'm editing is a a Single Line Text with ID of 4. Any help would be super appreciated.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can&#039;t submit input name array to show up in Entry List"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-submit-input-name-array-to-show-up-in-entry-list#post-124290</link>
			<pubDate>Thu, 17 Jan 2013 07:49:00 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">124290@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would assign your JSON string to another form field and mark that admin only, then allow the email notification to send the original input_2, with your json string stored in another field for your purposes.  I would not modify the original input_2.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wlcx on "Can&#039;t submit input name array to show up in Entry List"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-submit-input-name-array-to-show-up-in-entry-list#post-124185</link>
			<pubDate>Thu, 17 Jan 2013 04:50:31 +0000</pubDate>
			<dc:creator>wlcx</dc:creator>
			<guid isPermaLink="false">124185@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Let's say I have&#60;br /&#62;
&#60;code&#62;&#38;lt;input type=&#38;quot;number&#38;quot; name=&#38;quot;input_2[]&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I would use the gform_pre_submission hook to convert the input array to a json string&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_pre_submission_1&#38;quot;, &#38;quot;pre_submission_handler&#38;quot;);
function pre_submission_handler($form){
   $_POST[&#38;quot;input_2&#38;quot;] = json_encode($_POST[&#38;quot;input_2&#38;quot;]);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then if I want to render the json string as a list on the Entry detail page I would use the gform_entry_field_value hook like so&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_entry_field_value&#38;quot;, &#38;quot;category_names&#38;quot;, 10, 4);
function category_names($value, $field, $lead, $form){

	if($form[&#38;#39;id&#38;#39;] != 1 &#124;&#124; $field[&#38;#39;id&#38;#39;] != 2)
		return $value;

	$newvalue = &#38;#39;&#38;#39;;
    $choices = json_decode($value, true);

    foreach($choices as $choice) {
        $new_value .= &#38;#39;&#38;lt;li&#38;gt;&#38;#39;.$choice.&#38;#39;&#38;lt;/li&#38;gt;&#38;#39;;
    }

    return &#38;#39;&#38;lt;ul&#38;gt;&#38;#39; . $new_value . &#38;#39;&#38;lt;/ul&#38;gt;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The only issue I have now is that the email notification returns the json string. Is there anyway to format the values before the email notification is sent?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can&#039;t submit input name array to show up in Entry List"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-submit-input-name-array-to-show-up-in-entry-list#post-123869</link>
			<pubDate>Wed, 16 Jan 2013 22:36:05 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">123869@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you share your solution here for the benefit of someone else who might be stuck on the same problem?  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wlcx on "Can&#039;t submit input name array to show up in Entry List"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-submit-input-name-array-to-show-up-in-entry-list#post-123816</link>
			<pubDate>Wed, 16 Jan 2013 21:44:12 +0000</pubDate>
			<dc:creator>wlcx</dc:creator>
			<guid isPermaLink="false">123816@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I figured it out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wlcx on "Can&#039;t submit input name array to show up in Entry List"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-submit-input-name-array-to-show-up-in-entry-list#post-123770</link>
			<pubDate>Wed, 16 Jan 2013 20:54:00 +0000</pubDate>
			<dc:creator>wlcx</dc:creator>
			<guid isPermaLink="false">123770@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm using the gform_field_input hook to dynamically generate field elements, and that works. &#60;/p&#62;
&#60;p&#62;But I'm generating multiple fields and I need to use a name array (name=&#34;foo[]&#34;) for my values. So far I'm stuck. I tried &#34;input_$field['id']&#34; which works but  as an array, &#34;input_$field['id'][]&#34; does not work. &#60;/p&#62;
&#60;p&#62;I noticed the List fields use name arrays (input_$field['id'][]), so how can I get them to submit and show up in the entry list?&#60;/p&#62;
&#60;p&#62;Any help appreciated. Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
