<?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 Populating Gravity Forms Using Checkbox Fields</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-gravity-forms-using-checkbox-fields</link>
		<description>Gravity Support Forums Topic: Dynamically Populating Gravity Forms Using Checkbox Fields</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:05:34 +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-populating-gravity-forms-using-checkbox-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Dynamically Populating Gravity Forms Using Checkbox Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-gravity-forms-using-checkbox-fields#post-58459</link>
			<pubDate>Wed, 09 May 2012 23:22:12 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">58459@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Okie dokie. Here is a snippet that will populate an option field with only values that were passed via the query string. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/3887481&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/3887481&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;For example, passing this:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;a href=&#34;http://localhost/?gf_page=preview&#38;amp;id=150&#38;amp;selected_options=Test&#34; rel=&#34;nofollow&#34;&#62;http://localhost/?gf_page=preview&#38;amp;id=150&#38;amp;selected_options=Test&#60;/a&#62; 1,Test 2,Test 3,Test 4,Test 5&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Will give you this: &#60;a href=&#34;http://grab.by/dxmk&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/dxmk&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And passing this:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;a href=&#34;http://localhost/?gf_page=preview&#38;amp;id=150&#38;amp;selected_options=Idaho,Mexico&#34; rel=&#34;nofollow&#34;&#62;http://localhost/?gf_page=preview&#38;amp;id=150&#38;amp;selected_options=Idaho,Mexico&#60;/a&#62;&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Will give you this: &#60;a href=&#34;http://grab.by/dxmo&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/dxmo&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;A few notes:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;You can paste this snippet in your theme's &#60;em&#62;functions.php&#60;/em&#62; file.&#60;/li&#62;
&#60;li&#62;Be sure to update the config options for this snippet as specified via the inline comments.&#60;/li&#62;
&#60;li&#62;This method only works where all options are the same value. It is feasible to pass the actually price of the option in query string as well and then split up the label/price and define it dynamically; however, it'd be a bit more work.&#60;/li&#62;
&#60;/ol&#62;</description>
		</item>
		<item>
			<title>David Smith on "Dynamically Populating Gravity Forms Using Checkbox Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-gravity-forms-using-checkbox-fields#post-58457</link>
			<pubDate>Wed, 09 May 2012 22:38:58 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">58457@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hm, I see your point. That wouldn't be very concise would it. Let me cook something up for you. It might not be the full shebang but it'll at least be a decent base to work from.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Troy Dunn on "Dynamically Populating Gravity Forms Using Checkbox Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-gravity-forms-using-checkbox-fields#post-58444</link>
			<pubDate>Wed, 09 May 2012 17:33:58 +0000</pubDate>
			<dc:creator>Troy Dunn</dc:creator>
			<guid isPermaLink="false">58444@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If I setup the &#34;State Domain&#34; as a product and then set the different states as options, do I need to pass 50 field data options to the second form?&#60;/p&#62;
&#60;p&#62;I've updated the State, City, and Practice Area options on the form and I'm trying to the second form working again, per your recommendation.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Dynamically Populating Gravity Forms Using Checkbox Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-gravity-forms-using-checkbox-fields#post-58403</link>
			<pubDate>Wed, 09 May 2012 14:44:00 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">58403@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Troy,&#60;/p&#62;
&#60;p&#62;You might consider making the &#34;State Domain&#34; a product field and then set up the different state domains as an option field. The benefit is that Option fields support the checkbox field type which can populate multiple values passed via the query string.&#60;/p&#62;
&#60;p&#62;The alternative is to dynamically add fields to the form object via the gform_pre_render hook. You would like have to work through some kinks though as this method is possible but not really intended functionality of this hook.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Troy Dunn on "Dynamically Populating Gravity Forms Using Checkbox Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-gravity-forms-using-checkbox-fields#post-58352</link>
			<pubDate>Wed, 09 May 2012 12:23:53 +0000</pubDate>
			<dc:creator>Troy Dunn</dc:creator>
			<guid isPermaLink="false">58352@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The first part of my form is all ready to go now. I have several conditionally based multi select boxes. Each allows a user to select one or more option. Those options can be passed to a second form but I'm struggling on how to finish the functionality of this.&#60;/p&#62;
&#60;p&#62;Thanks for any help you can give me on this!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Troy Dunn on "Dynamically Populating Gravity Forms Using Checkbox Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-gravity-forms-using-checkbox-fields#post-58194</link>
			<pubDate>Tue, 08 May 2012 14:09:44 +0000</pubDate>
			<dc:creator>Troy Dunn</dc:creator>
			<guid isPermaLink="false">58194@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Quick follow up: I'd be cool with this working as a Multi Select List also, if that helps. As long as I can pass multiple product options.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Troy Dunn on "Dynamically Populating Gravity Forms Using Checkbox Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-gravity-forms-using-checkbox-fields#post-58178</link>
			<pubDate>Tue, 08 May 2012 13:05:05 +0000</pubDate>
			<dc:creator>Troy Dunn</dc:creator>
			<guid isPermaLink="false">58178@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm setting up a series of forms, that I'd like to work like this:&#60;/p&#62;
&#60;p&#62;1. User lands on form #1 and selects from a list of states in a checkbox list.&#60;br /&#62;
2. User clicks submit on form #1 and is redirect to form #2, where a product for each state the user has selected is displayed. (Example: On form #1, user selects Alabama and Alaska. Then on form #2, one dynamic product is created for Alabama and another dynamic product is created for Alaska.&#60;br /&#62;
3. User fills in their contact information for PayPal, and using the Gravity Forms PayPal AddOn, is redirected to PayPal to purchase the two state products.&#60;/p&#62;
&#60;p&#62;So far, I have form #1 working and it dynamically passes &#34;state={Select a State or States Below:3}&#34; as a query string to form #2. Form #2 displays field name &#34;state&#34; as &#34;Alabama, Alaska&#34; but as a single product, not two products. When you hit submit from form #2, it redirects to PayPal but only shows a single product, &#34;Alabama,Alaska&#34;.&#60;/p&#62;
&#60;p&#62;You can see the form online here:&#60;br /&#62;
&#60;a href=&#34;http://attorney.us/website-sign-up/&#34; rel=&#34;nofollow&#34;&#62;http://attorney.us/website-sign-up/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;*Please note, only the State Domain option is currently working. However, you may also get an idea on where I'm headed with the other options. &#60;/p&#62;
&#60;p&#62;How can I make this work?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
