<?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: Dynamically Populate Checkboxes</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-checkboxes-1</link>
		<description>Gravity Support Forums Topic: Dynamically Populate Checkboxes</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 23:46:31 +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/dynamically-populate-checkboxes-1" rel="self" type="application/rss+xml" />

		<item>
			<title>mmoriart on "Dynamically Populate Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-checkboxes-1#post-51084</link>
			<pubDate>Thu, 01 Mar 2012 21:07:15 +0000</pubDate>
			<dc:creator>mmoriart</dc:creator>
			<guid isPermaLink="false">51084@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I still can't get this to work. Where is the code added? I have tried in  functions.php and in the page template. Neither seems to work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mmoriart on "Dynamically Populate Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-checkboxes-1#post-50882</link>
			<pubDate>Tue, 28 Feb 2012 20:15:02 +0000</pubDate>
			<dc:creator>mmoriart</dc:creator>
			<guid isPermaLink="false">50882@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;More field setup &#60;a href=&#34;http://grab.by/c9o0&#34; rel=&#34;nofollow&#34;&#62;settings&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mmoriart on "Dynamically Populate Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-checkboxes-1#post-50881</link>
			<pubDate>Tue, 28 Feb 2012 20:08:22 +0000</pubDate>
			<dc:creator>mmoriart</dc:creator>
			<guid isPermaLink="false">50881@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;br /&#62;
I tried your example but it doesn't seem to work. I configured my checkbox field like &#60;a href=&#34;http://grab.by/c9no&#34; rel=&#34;nofollow&#34;&#62;this&#60;/a&#62; and entered this &#60;a href=&#34;http://pastebin.com/CTnmhqPZ&#34; rel=&#34;nofollow&#34;&#62;code&#60;/a&#62;&#60;br /&#62;
and neither &#60;a href=&#34;http://grab.by/c9nK&#34; rel=&#34;nofollow&#34;&#62;box&#60;/a&#62; is checked. Whats going wrong? If I return 1, I get &#60;a href=&#34;http://grab.by/c9nM&#34; rel=&#34;nofollow&#34;&#62;both checked&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Dynamically Populate Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-checkboxes-1#post-50835</link>
			<pubDate>Tue, 28 Feb 2012 13:15:34 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">50835@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi mmoriart,&#60;/p&#62;
&#60;p&#62;Assuming you have your field setup like so &#60;a href=&#34;http://grab.by/c8W8&#34; rel=&#34;nofollow&#34;&#62;this&#60;/a&#62;, you can populate it using &#60;a href=&#34;http://pastie.org/3481456&#34; rel=&#34;nofollow&#34;&#62;this code&#60;/a&#62; and it'll look like &#60;a href=&#34;http://grab.by/c8We&#34; rel=&#34;nofollow&#34;&#62;this&#60;/a&#62; when you load the form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mmoriart on "Dynamically Populate Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-checkboxes-1#post-50775</link>
			<pubDate>Mon, 27 Feb 2012 23:04:07 +0000</pubDate>
			<dc:creator>mmoriart</dc:creator>
			<guid isPermaLink="false">50775@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I'm a little confused. I'm trying to specify which checkboxes should be selected by default based on a true/false condition. It is not clear to me how to achieve this from the example code in the link above.  &#60;/p&#62;
&#60;p&#62;Could someone provide a simple example showing how to check either box in a 2 option checkbox field.&#60;/p&#62;
&#60;p&#62;The filter:&#60;br /&#62;
&#60;code&#62;add_filter(&#38;#39;gform_field_value_checkboxes&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;quot;return  1;&#38;quot;));&#60;/code&#62;&#60;br /&#62;
Seems to check all boxes in the field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Dynamically Populate Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-checkboxes-1#post-48060</link>
			<pubDate>Wed, 01 Feb 2012 18:31:23 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">48060@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Travis,&#60;/p&#62;
&#60;p&#62;The first approach would allow you to prepopulate the actual checkboxes available. The second approach would allow you to specify which checkboxes should be selected by default. When using the latter, you'll want to return a comma delimited list of options which should be selected.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Travis on "Dynamically Populate Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-checkboxes-1#post-43865</link>
			<pubDate>Mon, 12 Dec 2011 23:13:05 +0000</pubDate>
			<dc:creator>Travis</dc:creator>
			<guid isPermaLink="false">43865@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is this (&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/dynamic-checkboxes&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/dynamic-checkboxes&#60;/a&#62;) still the best method for populating checkboxes? Or should we be using the gform_field_value_parameter_name hook? If so what sort of value should be returned for checkboxes (assuming array of arrays?)?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
