<?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 field pre-population bug in 1.6.4.2.1?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/product-field-pre-population-bug-in-16421</link>
		<description>Gravity Support Forums Topic: Product field pre-population bug in 1.6.4.2.1?</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Apr 2026 11:05:10 +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-field-pre-population-bug-in-16421" rel="self" type="application/rss+xml" />

		<item>
			<title>LumpySimon on "Product field pre-population bug in 1.6.4.2.1?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/product-field-pre-population-bug-in-16421#post-59425</link>
			<pubDate>Fri, 18 May 2012 12:16:22 +0000</pubDate>
			<dc:creator>LumpySimon</dc:creator>
			<guid isPermaLink="false">59425@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello&#60;/p&#62;
&#60;p&#62;I have one product field in my form (it's a hidden field), I am prepopulating the price via a hook:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;gform_field_value_fee&#38;#39;, &#38;#39;prepopulate_fee&#38;#39; );
function prepopulate_fee( $value ) {
    // ...stuff here...
    return $fee;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This has always worked fine until I upgraded to the latest version of GF, when suddenly my form was no longer sending the user to PayPal, instead it was just going straight to the confirmation message.&#60;/p&#62;
&#60;p&#62;After some trial &#38;amp; error, it turns out that I now have to also pre-populate the quantity field, not just the price field. Previously GF defaulted to a value of one, whereas now it seems to default to zero.&#60;/p&#62;
&#60;p&#62;Is this expected behaviour or a bug?&#60;/p&#62;
&#60;p&#62;Many thanks&#60;br /&#62;
Simon
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
