<?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: Not all the selected values from checkboxes are being saved to the database</title>
		<link>https://legacy.forums.gravityhelp.com/topic/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database</link>
		<description>Gravity Support Forums Topic: Not all the selected values from checkboxes are being saved to the database</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:40:33 +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/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database" rel="self" type="application/rss+xml" />

		<item>
			<title>Nick Ciske on "Not all the selected values from checkboxes are being saved to the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database#post-203947</link>
			<pubDate>Wed, 10 Apr 2013 11:02:15 +0000</pubDate>
			<dc:creator>Nick Ciske</dc:creator>
			<guid isPermaLink="false">203947@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think having more empty slots than you're going to use, using some code to overwrite those with the dynamic data, and pruning unused ones might work.&#60;/p&#62;
&#60;p&#62;I used a similar workaround that I explained in this thread:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/dynamic-checkboxes-not-all-selections-being-saved&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/dynamic-checkboxes-not-all-selections-being-saved&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Not all the selected values from checkboxes are being saved to the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database#post-142702</link>
			<pubDate>Tue, 05 Feb 2013 15:41:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">142702@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@marty, it would be best to open a new topic for your distinct issue, and share all the custom code you're using there.  Use pastebin.com or pastie.org for lengthy code snippets.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>martyspellerberg on "Not all the selected values from checkboxes are being saved to the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database#post-142695</link>
			<pubDate>Tue, 05 Feb 2013 15:32:20 +0000</pubDate>
			<dc:creator>martyspellerberg</dc:creator>
			<guid isPermaLink="false">142695@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there, &#60;/p&#62;
&#60;p&#62;I'm experiencing the same behavior as Marc, where the number of dynamic choices saved being contingent on the number of empty choices added o the form via the admin. (Thanks for the tip Marc, BTW)&#60;/p&#62;
&#60;p&#62;I tried out the code posted here, but observed no change in the behavior.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Not all the selected values from checkboxes are being saved to the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database#post-141967</link>
			<pubDate>Mon, 04 Feb 2013 23:23:33 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">141967@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please let us know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Marc Koetsier on "Not all the selected values from checkboxes are being saved to the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database#post-141336</link>
			<pubDate>Mon, 04 Feb 2013 08:30:03 +0000</pubDate>
			<dc:creator>Marc Koetsier</dc:creator>
			<guid isPermaLink="false">141336@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK..thanks. I will verify if this works correctly and let you know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Not all the selected values from checkboxes are being saved to the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database#post-138770</link>
			<pubDate>Fri, 01 Feb 2013 15:41:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">138770@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I heard back from one of the developers:&#60;/p&#62;
&#60;p&#62;The trick with dynamically populating checkboxes is that in addition to using the gform_pre_render hook, you also need to use the gform_pre_submission_filter. They can point to the same function, but both of them need to be used so that the function fires at the proper times. Following is an example that should help you out:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/6014156&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/6014156&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Not all the selected values from checkboxes are being saved to the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database#post-138041</link>
			<pubDate>Thu, 31 Jan 2013 23:57:25 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">138041@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll ask the development team for their input on this one.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Marc Koetsier on "Not all the selected values from checkboxes are being saved to the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database#post-137484</link>
			<pubDate>Thu, 31 Jan 2013 11:04:28 +0000</pubDate>
			<dc:creator>Marc Koetsier</dc:creator>
			<guid isPermaLink="false">137484@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, I just noticed that when i add the checkbox field into the form, it has by default 3 choices. When i dynamically populate the field, i have, lets say, 15 choices. But when i submit the form, only the first 3 are saved to the database. If i go to the form editor, edit the checkbox field and increase the number of choices to 15. Then it all works correctly.&#60;/p&#62;
&#60;p&#62;Now, I think this defeats the purpose of dynamic population. Because now I have to make sure, the number of choice is increased in the form whenever I add a new post.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Marc Koetsier on "Not all the selected values from checkboxes are being saved to the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/not-all-the-selected-values-from-checkboxes-are-being-saved-to-the-database#post-137464</link>
			<pubDate>Thu, 31 Jan 2013 10:30:59 +0000</pubDate>
			<dc:creator>Marc Koetsier</dc:creator>
			<guid isPermaLink="false">137464@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;So i have checkbox field in my form. I dynamically populate data into the checkbox. See following code:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/private/vq7jjiojoln0844iqyjq#26,28&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/private/vq7jjiojoln0844iqyjq#26,28&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Basically, I am getting all custom type posts &#34;Workshops&#34; and populating the checkbox field with the value for each input being the post's title.&#60;/p&#62;
&#60;p&#62;But when i submit the form, not all the selected values are saved into the database.&#60;/p&#62;
&#60;p&#62;I referred to &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields&#60;/a&#62; and copy pasting the code from the article yeilds the same result.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
