<?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: Product Quantity not prepopulating correctly</title>
		<link>https://legacy.forums.gravityhelp.com/topic/product-quantity-not-prepopulating-correctly</link>
		<description>Gravity Support Forums Topic: Product Quantity not prepopulating correctly</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:35:23 +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/product-quantity-not-prepopulating-correctly" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Product Quantity not prepopulating correctly"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/product-quantity-not-prepopulating-correctly#post-55538</link>
			<pubDate>Tue, 17 Apr 2012 15:48:47 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">55538@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No, you aren't missing anything.  There is indeed a bug related to dynamically populating the quantity of a hidden Product Field via code and via the query string.  &#60;/p&#62;
&#60;p&#62;The good news is we have already patched this bug in the latest build of Gravity Forms v1.6.4 which is currently a beta release.  The patch will be included in the final Gravity Forms v1.6.4 release which will be coming this week.&#60;/p&#62;
&#60;p&#62;You also submitted this via Priority Support and I will reply to your Priority Support request and send you a copy of the Gravity Forms v1.6.4 beta build that has already corrected this bug.&#60;/p&#62;
&#60;p&#62;For anyone else encountering this bug, it is something that the final Gravity Forms v1.6.4 release will patch.  It will be released via automatic update later this week.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>computercourage on "Product Quantity not prepopulating correctly"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/product-quantity-not-prepopulating-correctly#post-55513</link>
			<pubDate>Tue, 17 Apr 2012 13:40:12 +0000</pubDate>
			<dc:creator>computercourage</dc:creator>
			<guid isPermaLink="false">55513@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a hidden product field with the following parameter names:&#60;br /&#62;
Name: ticket_name&#60;br /&#62;
Price: ticket_price&#60;br /&#62;
Quantity: ticket_quantity&#60;/p&#62;
&#60;p&#62;Name and price are prepopulating correctly, but no matter what I do with quantity, it doesn't catch. I've tried prepopulating through the function call:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$prepopulate = array( &#38;#39;ticket_quantity&#38;#39; =&#38;gt; 6 );
gravity_form(5, false, false, false, $prepopulate , false);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And doing it through the field_value action:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;gform_field_value_ticket_quantity&#38;#39;, &#38;#39;sftpay_ticket_quantity&#38;#39;);
function sftpay_ticket_quantity($value) {
    return 6;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But the form continues to output a value of 1 for the quantity:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;input_1.3&#38;quot; value=&#38;quot;1&#38;quot; class=&#38;quot;ginput_quantity_5_1 gform_hidden&#38;quot;&#38;gt;
&#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;input_1.1&#38;quot; value=&#38;quot;The Musical&#38;quot; class=&#38;quot;gform_hidden&#38;quot;&#38;gt;
&#38;lt;input name=&#38;quot;input_1.2&#38;quot; id=&#38;quot;ginput_base_price_5_1&#38;quot; type=&#38;quot;hidden&#38;quot; value=&#38;quot;$10.00&#38;quot; class=&#38;quot;gform_hidden ginput_amount&#38;quot;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Not sure if I'm missing something?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
