<?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 population issue</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue</link>
		<description>Gravity Support Forums Topic: dynamic population issue</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 00:58:25 +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-population-issue" rel="self" type="application/rss+xml" />

		<item>
			<title>K Schroeder on "dynamic population issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue#post-229995</link>
			<pubDate>Mon, 29 Apr 2013 14:27:40 +0000</pubDate>
			<dc:creator>K Schroeder</dc:creator>
			<guid isPermaLink="false">229995@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nothing yet.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eman100 on "dynamic population issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue#post-222944</link>
			<pubDate>Wed, 24 Apr 2013 20:08:24 +0000</pubDate>
			<dc:creator>eman100</dc:creator>
			<guid isPermaLink="false">222944@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Bump... this is almost exactly what I need... any progress on this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>K Schroeder on "dynamic population issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue#post-68227</link>
			<pubDate>Fri, 27 Jul 2012 12:28:12 +0000</pubDate>
			<dc:creator>K Schroeder</dc:creator>
			<guid isPermaLink="false">68227@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;thank both i'll be revisiting the issue now and i'll let you know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jsoningram on "dynamic population issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue#post-67229</link>
			<pubDate>Fri, 20 Jul 2012 09:03:28 +0000</pubDate>
			<dc:creator>jsoningram</dc:creator>
			<guid isPermaLink="false">67229@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It seems the function converts an &#34;Option&#34; field to a &#34;Drop Down&#34;. So how can I use the &#34;Price&#34; choice to add to the base price of my product?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://dl.dropbox.com/u/159555/Screen%20Shot%202012-07-20%20at%206.00.57%20AM.png&#34; rel=&#34;nofollow&#34;&#62;https://dl.dropbox.com/u/159555/Screen%20Shot%202012-07-20%20at%206.00.57%20AM.png&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jsoningram on "dynamic population issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue#post-67132</link>
			<pubDate>Thu, 19 Jul 2012 17:52:26 +0000</pubDate>
			<dc:creator>jsoningram</dc:creator>
			<guid isPermaLink="false">67132@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Under &#34;Creating and Array of Options&#34; from the post at &#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; it says you can use the Choices property to get these options.&#60;/p&#62;
&#60;p&#62;My data seems to get populated properly but I'm using this function in an option field and the cost of these dynamically populated options is not getting added to the base price of my product.&#60;/p&#62;
&#60;p&#62;Is there a special syntax I have to use to get the price field to populate with +$1.00 as opposed to $1.00 (without the plus)?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "dynamic population issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue#post-67042</link>
			<pubDate>Thu, 19 Jul 2012 12:26:51 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">67042@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Any update on this? I don't see why you would need to nest your array to get it to work though. Also, I don't know if you can give your dropdown a third property (price) like you've done.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jsoningram on "dynamic population issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue#post-67007</link>
			<pubDate>Thu, 19 Jul 2012 09:42:09 +0000</pubDate>
			<dc:creator>jsoningram</dc:creator>
			<guid isPermaLink="false">67007@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I may have it working with&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//Adds a filter to form id 14. Replace 14 with your actual form id
    add_filter(&#38;quot;gform_pre_render_1&#38;quot;, populate_dropdown);
    function populate_dropdown($form){

        global $sp_photo_only;
        global $sp_photo_only_desc;
        global $sp_mounted;
        global $sp_mounted_desc;
        global $sp_folding;
        global $sp_folding_inside;

        $choices = array(array(&#38;#39;text&#38;#39; =&#38;gt; $sp_photo_only_desc,
                               &#38;#39;value&#38;#39; =&#38;gt; $sp_photo_only_desc,
                               &#38;#39;price&#38;#39; =&#38;gt; $sp_photo_only
                              ),
                         array(&#38;#39;text&#38;#39; =&#38;gt; $sp_mounted_desc,
                               &#38;#39;value&#38;#39; =&#38;gt; $sp_mounted_desc,
                               &#38;#39;price&#38;#39; =&#38;gt; $sp_mounted
                              )

                        );

        //Adding items to field id 8. Replace 8 with your actual field id. You can get the field id by looking at the input name in the markup.
        foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field)
            if($field[&#38;quot;id&#38;quot;] == 35){
                $field[&#38;quot;type&#38;quot;] = &#38;quot;select&#38;quot;;
                $field[&#38;quot;choices&#38;quot;] = $choices;
            }

        return $form;
    }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Will update after testing.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jsoningram on "dynamic population issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue#post-66974</link>
			<pubDate>Thu, 19 Jul 2012 00:33:50 +0000</pubDate>
			<dc:creator>jsoningram</dc:creator>
			<guid isPermaLink="false">66974@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If I add the Initial blank value I get a blank entry at the end of the list: &#60;a href=&#34;https://dl.dropbox.com/u/159555/Screen%20Shot%202012-07-18%20at%209.30.20%20PM.png&#34; rel=&#34;nofollow&#34;&#62;https://dl.dropbox.com/u/159555/Screen%20Shot%202012-07-18%20at%209.30.20%20PM.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here's the whole function: &#60;a href=&#34;http://pastie.org/4281889&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4281889&#60;/a&#62; I've commented out some stuff I wasn't using.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "dynamic population issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue#post-66958</link>
			<pubDate>Wed, 18 Jul 2012 21:49:42 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">66958@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just out of curiosity, can you add back in the following lines to see what happens:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//Creating drop down item array.
    $items = array();
    //Adding initial blank value.
    $items[] = array(&#38;quot;text&#38;quot; =&#38;gt; &#38;quot;&#38;quot;, &#38;quot;value&#38;quot; =&#38;gt; &#38;quot;&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Also, can you post your exact function?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jsoningram on "dynamic population issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-issue#post-66950</link>
			<pubDate>Wed, 18 Jul 2012 19:37:48 +0000</pubDate>
			<dc:creator>jsoningram</dc:creator>
			<guid isPermaLink="false">66950@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a similar issue with the code example. I am trying to populate an option field with a label and price but I only get the first letter and both text and value produce an item in the drop down list.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/4280708&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4280708&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm working locally, here's a screen shot: &#60;a href=&#34;https://dl.dropbox.com/u/159555/Screen%20Shot%202012-07-18%20at%204.34.58%20PM.png&#34; rel=&#34;nofollow&#34;&#62;https://dl.dropbox.com/u/159555/Screen%20Shot%202012-07-18%20at%204.34.58%20PM.png&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
