<?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: Dynamic checkboxes</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1</link>
		<description>Gravity Support Forums Topic: Dynamic checkboxes</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 18:31:52 +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/dynamic-checkboxes-1" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Dynamic checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1#post-108273</link>
			<pubDate>Wed, 26 Dec 2012 08:38:27 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">108273@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@nitestop, I will close this topic as a duplicate of your other post here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/gravity-checkbox-to-advanced-custom-fields-checkbox#post-107612&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/gravity-checkbox-to-advanced-custom-fields-checkbox#post-107612&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nitestop on "Dynamic checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1#post-107608</link>
			<pubDate>Tue, 25 Dec 2012 09:02:03 +0000</pubDate>
			<dc:creator>nitestop</dc:creator>
			<guid isPermaLink="false">107608@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ok has anyone figured this out yet or is there a fix for this&#60;br /&#62;
i am using the latest version and i have several checkboxes in my form and when form is submited it makes several new custom fields for check box values and also says just says array for some custom field values.&#60;br /&#62;
really need help on this one for it is stopping my site launch.....
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nitestop on "Dynamic checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1#post-107607</link>
			<pubDate>Tue, 25 Dec 2012 09:00:30 +0000</pubDate>
			<dc:creator>nitestop</dc:creator>
			<guid isPermaLink="false">107607@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ok has anyone figured this out yet...&#60;br /&#62;
i am using the latest version and i have several checkboxes in my form and when form is submited it makes several new custom fields for check box values and also says just says array for some custom field values.&#60;br /&#62;
really need help on this one for it is stopping my site launch.....
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamic checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1#post-72689</link>
			<pubDate>Sun, 26 Aug 2012 22:35:22 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">72689@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@sangfroidweb - please post the code you are using the render the checkboxes, and please post a link to your form and we will be happy to help you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sangfroidweb on "Dynamic checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1#post-72659</link>
			<pubDate>Sun, 26 Aug 2012 17:09:59 +0000</pubDate>
			<dc:creator>sangfroidweb</dc:creator>
			<guid isPermaLink="false">72659@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, so using gform_pre_render to render the checkboxes is fine. But is there a way to set one or more boxes as CHECKED with this method? PLEASE HELP! :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>schnettker on "Dynamic checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1#post-57950</link>
			<pubDate>Mon, 07 May 2012 08:48:01 +0000</pubDate>
			<dc:creator>schnettker</dc:creator>
			<guid isPermaLink="false">57950@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there anything new?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Dynamic checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1#post-57035</link>
			<pubDate>Mon, 30 Apr 2012 14:59:54 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">57035@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I do see what you are referring to.  I am going to take a deeper look and see what is going on.  I'll reply back shortly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Dynamic checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1#post-56987</link>
			<pubDate>Mon, 30 Apr 2012 12:10:58 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">56987@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So what is output to the database? When you do view source and look at the code being output for the list, what are the values associated with the choices?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>schnettker on "Dynamic checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1#post-56986</link>
			<pubDate>Mon, 30 Apr 2012 12:08:27 +0000</pubDate>
			<dc:creator>schnettker</dc:creator>
			<guid isPermaLink="false">56986@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl, my output is okay too. But please try to choice the second Checkbox and look then into your database. I tried several times an the second (third, and so on) checkbox isn't publish to database (the visiual output is okay)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Dynamic checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-checkboxes-1#post-56982</link>
			<pubDate>Mon, 30 Apr 2012 11:44:18 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">56982@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You shouldn't have to add any checkbox items to your checkbox field in the form editor in order to dynamically populate it using the code example you are using.  It replaces the values entirely, the existing values don't act as placeholders.&#60;/p&#62;
&#60;p&#62;I just tested the example you are working from and implemented it on my own test site and it works fine.  The example I am referring to is here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/dynamic-checkboxes#post-9476&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/dynamic-checkboxes#post-9476&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I implemented this code, exactly as is, on my test site and had no problem using it to dynamically populate the checkbox field.  I am including screenshots of what I have done below.&#60;/p&#62;
&#60;p&#62;I created a new form and on that form I placed a Checkbox field that I want to dynamically populate.  The field consists of only 1 choice, but it doesn't matter as all the choices will be replaced by my custom code.  See this screenshot:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://dl.dropbox.com/u/185347/Slingshot/Pictures/Screen%20Shot%202012-04-30%20at%2011.36.52%20AM.png&#34; rel=&#34;nofollow&#34;&#62;http://dl.dropbox.com/u/185347/Slingshot/Pictures/Screen%20Shot%202012-04-30%20at%2011.36.52%20AM.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;After creating the form with the checkbox I then implemented the example code to populate that field dynamically using the gform_pre_render hook by placing custom code in my themes functions.php file.  See this screenshot:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://dl.dropbox.com/u/185347/Slingshot/Pictures/Screen%20Shot%202012-04-30%20at%2011.37.48%20AM.png&#34; rel=&#34;nofollow&#34;&#62;http://dl.dropbox.com/u/185347/Slingshot/Pictures/Screen%20Shot%202012-04-30%20at%2011.37.48%20AM.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Now when I preview my form, the checkbox field is dynamically populated with the items it's being populated with in the custom code that I implemented as opposed to the choices in the form editor itself.  See this screenshot:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://dl.dropbox.com/u/185347/Slingshot/Pictures/Screen%20Shot%202012-04-30%20at%2011.38.25%20AM.png&#34; rel=&#34;nofollow&#34;&#62;http://dl.dropbox.com/u/185347/Slingshot/Pictures/Screen%20Shot%202012-04-30%20at%2011.38.25%20AM.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;So the example code does indeed work.  If it's not working in your implementation that means that it wasn't implemented properly or the custom code related to getting and returning the values you want to populate the field is not functioning correctly.&#60;/p&#62;
&#60;p&#62;I would start again from the beginning and implement the code exactly as it is found here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/dynamic-checkboxes#post-9476&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/dynamic-checkboxes#post-9476&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Then update it to suit your needs.  The issue is happening on your end with how you are populating the array of choices and inputs.  It sounds like if it's only passing the first value, that you aren't actually passing an array of values like you should be.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
