<?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: Prepopulate multiple columns list field with gform_pre_render</title>
		<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render</link>
		<description>Gravity Support Forums Topic: Prepopulate multiple columns list field with gform_pre_render</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 15:21:41 +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/prepopulate-multiple-columns-list-field-with-gform_pre_render" rel="self" type="application/rss+xml" />

		<item>
			<title>skin29 on "Prepopulate multiple columns list field with gform_pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render#post-69268</link>
			<pubDate>Fri, 03 Aug 2012 02:54:35 +0000</pubDate>
			<dc:creator>skin29</dc:creator>
			<guid isPermaLink="false">69268@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I eliminated the doubling by extending this piece of code in the gform_post_data() function&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/4382382&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4382382&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;this way if it is a list type field it deletes all the custom meta associated with this field and adds new entries.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>skin29 on "Prepopulate multiple columns list field with gform_pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render#post-69267</link>
			<pubDate>Fri, 03 Aug 2012 02:23:35 +0000</pubDate>
			<dc:creator>skin29</dc:creator>
			<guid isPermaLink="false">69267@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank You!,&#60;br /&#62;
I get the exact same array structure for the $form['defaultValue'] but the list fields remained empty and the thing was I had left the checkbox &#34;Allow field to be populated dynamically&#34; checked.&#60;/p&#62;
&#60;p&#62;After I unchecked it I get the fields populated, but now I have the problem with duplicating fields when updating the post.&#60;/p&#62;
&#60;p&#62;Here is the code I used&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/4382288&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4382288&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks again!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vayu on "Prepopulate multiple columns list field with gform_pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render#post-69242</link>
			<pubDate>Thu, 02 Aug 2012 18:08:09 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">69242@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is for a list field with multiple columns:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[defaultValue] =&#38;gt; Array (
            [0] =&#38;gt; Array(
                    [Column 1] =&#38;gt; 111
                    [Column 2] =&#38;gt; 222
                    [Column 3] =&#38;gt; 333
                )
            [1] =&#38;gt; Array (
                    [Column 1] =&#38;gt; 444
                    [Column 2] =&#38;gt; 555
                    [Column 3] =&#38;gt; 666
                )
        )&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This is for a list field without multiple columns:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[defaultValue] =&#38;gt; Array(
            [0] =&#38;gt; 777
            [1] =&#38;gt; 888
            [2] =&#38;gt; 999
       )&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;a href=&#34;http://www.box.com/shared/62fab23b6eead9fa0be4&#34; rel=&#34;nofollow&#34;&#62;http://www.box.com/shared/62fab23b6eead9fa0be4&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I have found an issue though.  For some reason it is not possible to delete entire rows, by clicking on a minus button and then update.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>skin29 on "Prepopulate multiple columns list field with gform_pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render#post-69237</link>
			<pubDate>Thu, 02 Aug 2012 17:21:59 +0000</pubDate>
			<dc:creator>skin29</dc:creator>
			<guid isPermaLink="false">69237@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Vayu,&#60;br /&#62;
I would be very grateful if You could post the result of the &#60;/p&#62;
&#60;p&#62;&#60;code&#62;print_r(  $field[ &#38;#39;defaultValue&#38;#39; ]  );&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;for the list type field?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>skin29 on "Prepopulate multiple columns list field with gform_pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render#post-69223</link>
			<pubDate>Thu, 02 Aug 2012 16:31:18 +0000</pubDate>
			<dc:creator>skin29</dc:creator>
			<guid isPermaLink="false">69223@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I had similar code like You in line 170, after adding the &#34;list&#34; case in the switch statement - I still have no data in the form fields. &#60;/p&#62;
&#60;p&#62;Here is a array for the $result array &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/4379717&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4379717&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;but still no data in the form fields
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vayu on "Prepopulate multiple columns list field with gform_pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render#post-69210</link>
			<pubDate>Thu, 02 Aug 2012 15:31:52 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">69210@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi.&#60;/p&#62;
&#60;p&#62;It was difficult task, but I think I managed to solve it.  It may not be pretty and most likely it can be done better but here it is. I had to modified file gravityforms-update--post.php, which I usually don't do.  This was at about line 239.&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/4379397&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4379397&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Furthermore, I added this bit of code to about line 170.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;elseif ($field[&#38;#39;type&#38;#39;] == &#38;#39;post_custom_field&#38;#39; &#38;amp;&#38;amp; isset($meta[$field[&#38;#39;postCustomFieldName&#38;#39;]]) &#38;amp;&#38;amp; $field_type == &#38;#39;list&#38;#39;)
        {
          $field = $this-&#38;gt;gform_populate_element($field, $field_type, $meta[$field[&#38;#39;postCustomFieldName&#38;#39;]]);
        }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I haven't explained the code, as I don't really have the time, but I hope this makes sense. :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>skin29 on "Prepopulate multiple columns list field with gform_pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render#post-69207</link>
			<pubDate>Thu, 02 Aug 2012 15:12:32 +0000</pubDate>
			<dc:creator>skin29</dc:creator>
			<guid isPermaLink="false">69207@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Vayu&#60;br /&#62;
what modifications did You make to get the first fields populated?&#60;/p&#62;
&#60;p&#62;I modified the plugin to but can't display any values in the fields.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vayu on "Prepopulate multiple columns list field with gform_pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render#post-69089</link>
			<pubDate>Thu, 02 Aug 2012 04:24:01 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">69089@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can fill the first input field in the list field, when I convert the string to an array.  Here you can see two ways I have manipulated the string and added it to the $field[defaultvalue].&#60;br /&#62;
&#60;a href=&#34;http://www.box.com/shared/572184b8ea9b7f80b897&#34; rel=&#34;nofollow&#34;&#62;http://www.box.com/shared/572184b8ea9b7f80b897&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I just can't seem to fill out all three input fields.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vayu on "Prepopulate multiple columns list field with gform_pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render#post-69056</link>
			<pubDate>Wed, 01 Aug 2012 18:08:14 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">69056@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Help please help. :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vayu on "Prepopulate multiple columns list field with gform_pre_render"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-multiple-columns-list-field-with-gform_pre_render#post-68910</link>
			<pubDate>Wed, 01 Aug 2012 04:38:46 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">68910@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris.&#60;br /&#62;
Thanks for getting back to me on this. :-)&#60;/p&#62;
&#60;p&#62;Yes, I have studied the $form/$entry dumb on this and I can't get it right.&#60;br /&#62;
Here is part of the dump for this field:&#60;br /&#62;
&#60;a href=&#34;https://www.box.com/shared/b3ab15c81c754e62ddb8&#34; rel=&#34;nofollow&#34;&#62;https://www.box.com/shared/b3ab15c81c754e62ddb8&#60;/a&#62;&#60;br /&#62;
I have tried to add data to the &#34;defaultvalue&#34;, but this doesn't help.&#60;/p&#62;
&#60;p&#62;Any clue?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
