<?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: Required condition not working for Drop down boxes</title>
		<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes</link>
		<description>Gravity Support Forums Topic: Required condition not working for Drop down boxes</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 11:36:12 +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/required-condition-not-working-for-drop-down-boxes" rel="self" type="application/rss+xml" />

		<item>
			<title>Sargent on "Required condition not working for Drop down boxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes#post-60434</link>
			<pubDate>Fri, 25 May 2012 18:33:17 +0000</pubDate>
			<dc:creator>Sargent</dc:creator>
			<guid isPermaLink="false">60434@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David&#60;/p&#62;
&#60;p&#62;Thank you for helping us with this problem. I installed the new version and now when I make those fields required it allows an empty field to be submitted.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Required condition not working for Drop down boxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes#post-60425</link>
			<pubDate>Fri, 25 May 2012 16:30:59 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">60425@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Gary,&#60;/p&#62;
&#60;p&#62;Just sent you an email with an updated version of Gravity Forms which will allow you to submit 0 as a valid value for required single product fields.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sargent on "Required condition not working for Drop down boxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes#post-60417</link>
			<pubDate>Fri, 25 May 2012 15:18:45 +0000</pubDate>
			<dc:creator>Sargent</dc:creator>
			<guid isPermaLink="false">60417@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There are three different sets of inputs A, B and C. When a user chooses A from a dropdown its lets them fill in the inputs for Product A. But we've noticed are not filling in the quantity inputs and submitting the form. So I would like it to validate only if the input is not empty.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sargent on "Required condition not working for Drop down boxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes#post-60416</link>
			<pubDate>Fri, 25 May 2012 15:13:36 +0000</pubDate>
			<dc:creator>Sargent</dc:creator>
			<guid isPermaLink="false">60416@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry I guess I should've given more details. The field is a Single Product field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Required condition not working for Drop down boxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes#post-60415</link>
			<pubDate>Fri, 25 May 2012 15:01:25 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">60415@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Gary,&#60;/p&#62;
&#60;p&#62;Could you provide a little more information on your setup? I tested with a drop down field and setting it to required will prevent empty values from passing but will pass validation for &#34;0&#34;. What field type are you using?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sargent on "Required condition not working for Drop down boxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes#post-60411</link>
			<pubDate>Fri, 25 May 2012 14:48:21 +0000</pubDate>
			<dc:creator>Sargent</dc:creator>
			<guid isPermaLink="false">60411@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I found this thread searching for &#34;Field Validation&#34;. I am able to get the code to work in general but I want it to only validate if the field is not empty. The number 0 would be allowed but not an empty field. I'm not sure how I would write the if statement? I tried using is_int() to see if it was an integer but I think a non empty value is being read as the number zero. Is that right?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($result[&#38;quot;is_valid&#38;quot;] &#38;amp;&#38;amp; intval($value) &#38;lt; 10)&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Required condition not working for Drop down boxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes#post-59627</link>
			<pubDate>Mon, 21 May 2012 11:11:55 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">59627@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually, you can try this out and see if it works as a work around: &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/drop-down-list-default-value-and-error-checking#post-48891&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/drop-down-list-default-value-and-error-checking#post-48891&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Required condition not working for Drop down boxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes#post-59580</link>
			<pubDate>Sun, 20 May 2012 22:29:35 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">59580@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You'll be putting it in your theme's functions.php file:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>servent1 on "Required condition not working for Drop down boxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes#post-59568</link>
			<pubDate>Sun, 20 May 2012 20:37:40 +0000</pubDate>
			<dc:creator>servent1</dc:creator>
			<guid isPermaLink="false">59568@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Rob,&#60;br /&#62;
How do you get to the source code a particluar form to add the PHP code?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Required condition not working for Drop down boxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/required-condition-not-working-for-drop-down-boxes#post-59558</link>
			<pubDate>Sun, 20 May 2012 18:29:59 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">59558@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Technically, the &#34;Select One&#34; is an option. You'd want to use our gform field validation filter:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_validation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_validation&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
