<?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: Making the Price/Quantity Field a Required Field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/making-the-pricequantity-field-a-required-field</link>
		<description>Gravity Support Forums Topic: Making the Price/Quantity Field a Required Field</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 09:16:59 +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/making-the-pricequantity-field-a-required-field" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Making the Price/Quantity Field a Required Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/making-the-pricequantity-field-a-required-field#post-17864</link>
			<pubDate>Mon, 07 Feb 2011 18:36:47 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">17864@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Moller,&#60;/p&#62;
&#60;p&#62;This will do the trick. Make sure you update the necessary pieces documented in the code: &#60;a href=&#34;http://pastie.org/1538736&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1538736&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mollermarketing on "Making the Price/Quantity Field a Required Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/making-the-pricequantity-field-a-required-field#post-17846</link>
			<pubDate>Mon, 07 Feb 2011 17:01:06 +0000</pubDate>
			<dc:creator>mollermarketing</dc:creator>
			<guid isPermaLink="false">17846@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Carl. The reason I needed this was to cause a Product Quantity field to be mandatory to fill out.&#60;/p&#62;
&#60;p&#62;Which areas in the code here would I need to change?&#60;/p&#62;
&#60;p&#62;Here's the form (updating soon):&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://monetizemyhobby.com/spring-fling-2011/register/&#34; rel=&#34;nofollow&#34;&#62;http://monetizemyhobby.com/spring-fling-2011/register/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Making the Price/Quantity Field a Required Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/making-the-pricequantity-field-a-required-field#post-17840</link>
			<pubDate>Mon, 07 Feb 2011 16:33:50 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">17840@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is a gform_validation example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_filter(&#38;#39;gform_validation&#38;#39;, &#38;#39;custom_validation&#38;#39;);
function custom_validation($validation_result){

// set the form validation to false
$validation_result[&#38;quot;is_valid&#38;quot;] = false;
$form = $validation_result[&#38;quot;form&#38;quot;];

// specify the first field to be invalid and provide custom validation message
$form[&#38;quot;fields&#38;quot;][0][&#38;quot;failed_validation&#38;quot;] = true;
$form[&#38;quot;fields&#38;quot;][0][&#38;quot;validation_message&#38;quot;] = &#38;quot;This field is invalid!&#38;quot;;

// update the form in the validation result with the form object you modified
$validation_result[&#38;quot;form&#38;quot;] = $form;

return $validation_result;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>mollermarketing on "Making the Price/Quantity Field a Required Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/making-the-pricequantity-field-a-required-field#post-17821</link>
			<pubDate>Mon, 07 Feb 2011 13:28:28 +0000</pubDate>
			<dc:creator>mollermarketing</dc:creator>
			<guid isPermaLink="false">17821@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can I get that snippet of gform_validation?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mollermarketing on "Making the Price/Quantity Field a Required Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/making-the-pricequantity-field-a-required-field#post-16992</link>
			<pubDate>Tue, 25 Jan 2011 13:22:08 +0000</pubDate>
			<dc:creator>mollermarketing</dc:creator>
			<guid isPermaLink="false">16992@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Since I've already added a ton of work, i think it'd be easier to do the latter and not have to add a quantity to each section break by dragging them clear up the long form.&#60;/p&#62;
&#60;p&#62;Thanks for the snippet for gform_validation.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Making the Price/Quantity Field a Required Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/making-the-pricequantity-field-a-required-field#post-16980</link>
			<pubDate>Tue, 25 Jan 2011 12:11:18 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">16980@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Your best bet is to use a separate &#34;Quantity&#34; field which does have the ability to make it required. Alternately you can use the &#60;strong&#62;gform_validation&#60;/strong&#62; to make sure the quantity of the product field is not empty.&#60;/p&#62;
&#60;p&#62;If you'd like to pursue the latter option, I can get you started with a snippet.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mollermarketing on "Making the Price/Quantity Field a Required Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/making-the-pricequantity-field-a-required-field#post-16940</link>
			<pubDate>Mon, 24 Jan 2011 16:22:10 +0000</pubDate>
			<dc:creator>mollermarketing</dc:creator>
			<guid isPermaLink="false">16940@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm using the Price Quantity field as an essential part of my Gravity Form. I've noticed, though, that this field does not currently have an option for &#34;Required Field&#34;.&#60;/p&#62;
&#60;p&#62;How can I make that a mandatory field?&#60;/p&#62;
&#60;p&#62;Here's the form:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://monetizemyhobby.com/spring-fling-2011/register/&#34; rel=&#34;nofollow&#34;&#62;http://monetizemyhobby.com/spring-fling-2011/register/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
