<?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: &#34;inputs&#34; array isn&#039;t updated after pre-populate fields</title>
		<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields</link>
		<description>Gravity Support Forums Topic: &quot;inputs&quot; array isn&#039;t updated after pre-populate fields</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:19:49 +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/inputs-array-isnt-updated-after-pre-populate-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "&#34;inputs&#34; array isn&#039;t updated after pre-populate fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields#post-68753</link>
			<pubDate>Tue, 31 Jul 2012 09:55:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">68753@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the update Arjan.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>acsnaterse on "&#34;inputs&#34; array isn&#039;t updated after pre-populate fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields#post-68711</link>
			<pubDate>Tue, 31 Jul 2012 03:43:21 +0000</pubDate>
			<dc:creator>acsnaterse</dc:creator>
			<guid isPermaLink="false">68711@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Dana,&#60;/p&#62;
&#60;p&#62;Thanks for you reply. Would be great to have such filters in the future, so I'll just wait for that ;-) In the meanwhile I can use your fix.&#60;/p&#62;
&#60;p&#62;Thanks a lot!&#60;br /&#62;
Arjan
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "&#34;inputs&#34; array isn&#039;t updated after pre-populate fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields#post-68617</link>
			<pubDate>Mon, 30 Jul 2012 14:57:03 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">68617@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, acsnaterse,&#60;/p&#62;
&#60;p&#62;Sorry it took so long to get back with you. The form notifications page doesn't honor the field as you have set it up with the functions in the gform_pre_render and gform_admin_pre_render hooks. As you saw, the inputs collection for the field isn't populated. Even if you did populate this in your function, the only values that would show in the merge tag drop down would be ones that showed in the form editor when you saved. So, this still doesn't help you because it isn't really feasible to keep going into the admin and saving the form.&#60;/p&#62;
&#60;p&#62;If your goal is just to display the values that the user chose while submitting the form, then you can simply add the merge tag for the checkbox field, not the individual checkbox choices. When that is selected, the values that the user has selected are shown in a comma-delimited list.&#60;/p&#62;
&#60;p&#62;I did look into having the notifications page use those hooks, but we are making some changes soon to how the form settings/notifications are laid out and we don't want to make any big changes to it right now. I have mentioned the need for those hooks to also be fired on the notifications page to the rest of the team, so we will look into doing that with our planned changes. I know this doesn't solve your immediate issue, but at least you know it is on our radar.&#60;/p&#62;
&#60;p&#62;And if you would like to populate the inputs collection anyway, I have a modified version of your function which does so. You can take a look at that at this link: &#60;a href=&#34;http://pastie.org/4360726&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4360726&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "&#34;inputs&#34; array isn&#039;t updated after pre-populate fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields#post-67882</link>
			<pubDate>Wed, 25 Jul 2012 12:06:43 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">67882@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just a note, I haven't forgotten this. I had to switch gears and work on another issue. I should do some more on this today.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>acsnaterse on "&#34;inputs&#34; array isn&#039;t updated after pre-populate fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields#post-67355</link>
			<pubDate>Sat, 21 Jul 2012 08:28:46 +0000</pubDate>
			<dc:creator>acsnaterse</dc:creator>
			<guid isPermaLink="false">67355@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for pointing this out so clear :-) Until step 7 everything works indeed and is correct.&#60;/p&#62;
&#60;p&#62;7. Yes, I see the book in the admin (screenshot &#60;a href=&#34;http://uploads.uprise.nl/Bewerk_formulieren_%E2%80%B9_ICTRecht_%E2%80%94_WordPress-20120721-142224.png)&#34; rel=&#34;nofollow&#34;&#62;http://uploads.uprise.nl/Bewerk_formulieren_%E2%80%B9_ICTRecht_%E2%80%94_WordPress-20120721-142224.png)&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;8. In the notifications screen there are several selectboxes with some merge fields, to insert variables from the form in the notification messages. This is a screenhot of one of those selectboxes: &#60;a href=&#34;http://uploads.uprise.nl/Screen_Shot_2012-07-21_at_14.24.12-20120721-142449.png&#34; rel=&#34;nofollow&#34;&#62;http://uploads.uprise.nl/Screen_Shot_2012-07-21_at_14.24.12-20120721-142449.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Now &#34;Cloud&#34; is in the selectbox, but is because of manually adding/saving this field (as described above in my former response). When a new post/book is added these fields in the selectbox are not automatically updated.&#60;/p&#62;
&#60;p&#62;9. Both, frontend and backend. Indeed I print the $form object in the filter function.&#60;/p&#62;
&#60;p&#62;I hope this clarifies it a bit?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "&#34;inputs&#34; array isn&#039;t updated after pre-populate fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields#post-67276</link>
			<pubDate>Fri, 20 Jul 2012 15:46:37 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">67276@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, acsnaterse,&#60;/p&#62;
&#60;p&#62;I am not sure if we entirely understand what you are trying to do. I want to make sure we are clear.&#60;/p&#62;
&#60;p&#62;1. You have created a custom post type of boek (book).&#60;br /&#62;
2. You have posts associated to that custom post type.&#60;br /&#62;
3. When the form loads from the site, there is a checkbox displayed which has the values of the book titles pulled from the wp_posts table for post_type='boek'. This is populated by the gform_pre_render filter. This part is working correctly.&#60;br /&#62;
4. The gform_admin_pre_render filter is used so when you go into the admin, the checkbox is populated in the form editor. This part is working correctly.&#60;br /&#62;
5. You have added a new post for the book Cloud and associated it to the post type of 'boek'.&#60;br /&#62;
6. The new book Cloud shows on the form when on the site.&#60;/p&#62;
&#60;p&#62;I think the next part is where the confusion on our end begins.&#60;br /&#62;
7. Does the new book show in the admin when you go to edit the checkbox field?&#60;br /&#62;
8. What do you mean by the new book not showing in the &#34;selectbox of the merge fields&#34; and the &#34;merge-fields in the backend&#34;? I couldn't tell what the screenshot you provided was showing.&#60;br /&#62;
9. When you are viewing the $form object and looking at the choices and inputs, is this when the form is loading or when loading it in the admin? Are you doing this in the different render filters?&#60;/p&#62;
&#60;p&#62;I am trying to reproduce what you are doing so I can understand it better.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "&#34;inputs&#34; array isn&#039;t updated after pre-populate fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields#post-67255</link>
			<pubDate>Fri, 20 Jul 2012 13:27:23 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">67255@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You cannot update your form by using the pre-render filter.  That is for displaying information before the form is shown to the visitor.  You're trying to programmatically modify your form which is not supported by any existing filters that I know of.  I pinged one of the developers and maybe they will point out something I am unfamiliar with.  If I understand what you're trying to do, I don't believe it's possible.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>acsnaterse on "&#34;inputs&#34; array isn&#039;t updated after pre-populate fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields#post-67223</link>
			<pubDate>Fri, 20 Jul 2012 08:23:46 +0000</pubDate>
			<dc:creator>acsnaterse</dc:creator>
			<guid isPermaLink="false">67223@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, when there's a new book, the form itself will update automatically (like I want), but not the merge-fields in the backend.&#60;/p&#62;
&#60;p&#62;Is there a way to do so? Which filter do I need for that?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "&#34;inputs&#34; array isn&#039;t updated after pre-populate fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields#post-67209</link>
			<pubDate>Fri, 20 Jul 2012 07:23:42 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">67209@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Do you mean you are trying to permanently update the checkbox list which is saved in your form, using the gform_pre_render filter?  You want to update the form?  The gform_pre_render filter will not update your form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>acsnaterse on "&#34;inputs&#34; array isn&#039;t updated after pre-populate fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inputs-array-isnt-updated-after-pre-populate-fields#post-67188</link>
			<pubDate>Fri, 20 Jul 2012 05:11:46 +0000</pubDate>
			<dc:creator>acsnaterse</dc:creator>
			<guid isPermaLink="false">67188@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Another update which maybe helps you with finding the bug (since it seems to be a bug).&#60;/p&#62;
&#60;p&#62;When I edit the form manually and I add an empty (or other) option, the &#34;inputs&#34; array seems to be updated and I see all of the inputs in the merge tags select field.&#60;/p&#62;
&#60;p&#62;So probably after &#34;pre rendering&#34; the form the inputs array isn't updated. Maybe this is correct behavior (?), but is there a way/filter to also update the &#34;inputs&#34; array?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
