<?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: Number fields (please enter a valid number error) set min to 0.1, ex. 1.2, 2.7</title>
		<link>https://legacy.forums.gravityhelp.com/topic/number-fields-please-enter-a-valid-number-error-set-min-to-01-ex-12-27</link>
		<description>Gravity Support Forums Topic: Number fields (please enter a valid number error) set min to 0.1, ex. 1.2, 2.7</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 19:59:31 +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/number-fields-please-enter-a-valid-number-error-set-min-to-01-ex-12-27" rel="self" type="application/rss+xml" />

		<item>
			<title>onmark on "Number fields (please enter a valid number error) set min to 0.1, ex. 1.2, 2.7"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-fields-please-enter-a-valid-number-error-set-min-to-01-ex-12-27#post-43042</link>
			<pubDate>Sat, 03 Dec 2011 16:50:14 +0000</pubDate>
			<dc:creator>onmark</dc:creator>
			<guid isPermaLink="false">43042@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Okay I fixed it myself.. &#60;/p&#62;
&#60;p&#62;you have:&#60;/p&#62;
&#60;p&#62;public static function is_numeric($value){&#60;br /&#62;
        return preg_match(&#34;/^(-?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{2})?)$/&#34;, $value) &#124;&#124; preg_match(&#34;/^(-?[0-9]{1,3}(?:\.?[0-9]{3})*(?:,[0-9]{2})?)$/&#34;, $value);&#60;/p&#62;
&#60;p&#62;in common.php&#60;/p&#62;
&#60;p&#62;YOU NEED:&#60;br /&#62;
public static function is_numeric($value){&#60;br /&#62;
        return preg_match(&#34;/^(-?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{1,2})?)$/&#34;, $value) &#124;&#124; preg_match(&#34;/^(-?[0-9]{1,3}(?:\.?[0-9]{3})*(?:,[0-9]{1,2})?)$/&#34;, $value);&#60;/p&#62;
&#60;p&#62;The difference is not hard coding to 2 digits..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>onmark on "Number fields (please enter a valid number error) set min to 0.1, ex. 1.2, 2.7"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-fields-please-enter-a-valid-number-error-set-min-to-01-ex-12-27#post-43041</link>
			<pubDate>Sat, 03 Dec 2011 16:41:57 +0000</pubDate>
			<dc:creator>onmark</dc:creator>
			<guid isPermaLink="false">43041@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;upon diving into the code I have a strong feeling &#34;is_numeric&#34; is somehow wrong and not understanding decimal point numbers..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>onmark on "Number fields (please enter a valid number error) set min to 0.1, ex. 1.2, 2.7"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-fields-please-enter-a-valid-number-error-set-min-to-01-ex-12-27#post-43040</link>
			<pubDate>Sat, 03 Dec 2011 16:32:28 +0000</pubDate>
			<dc:creator>onmark</dc:creator>
			<guid isPermaLink="false">43040@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To make things even more clear, before going into all this. I just used the default number field settings no range.. entering 1.5 generates a &#34;Please enter a valid number&#34;&#60;/p&#62;
&#60;p&#62;please explain how and why 1.5 is not a valid number
&#60;/p&#62;</description>
		</item>
		<item>
			<title>onmark on "Number fields (please enter a valid number error) set min to 0.1, ex. 1.2, 2.7"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-fields-please-enter-a-valid-number-error-set-min-to-01-ex-12-27#post-43039</link>
			<pubDate>Sat, 03 Dec 2011 15:37:16 +0000</pubDate>
			<dc:creator>onmark</dc:creator>
			<guid isPermaLink="false">43039@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't want to make them enter anything, that is my problem..&#60;/p&#62;
&#60;p&#62;I have users entering 1.5 and it is giving a please enter a valid number error. Will that custom validation just allow me to disable it all together?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Number fields (please enter a valid number error) set min to 0.1, ex. 1.2, 2.7"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-fields-please-enter-a-valid-number-error-set-min-to-01-ex-12-27#post-42946</link>
			<pubDate>Fri, 02 Dec 2011 18:47:45 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">42946@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To add to what Alex said, there is also a tutorial on how to use the gform_validation to create custom validation here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Number fields (please enter a valid number error) set min to 0.1, ex. 1.2, 2.7"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-fields-please-enter-a-valid-number-error-set-min-to-01-ex-12-27#post-42938</link>
			<pubDate>Fri, 02 Dec 2011 17:43:46 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">42938@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am not sure I understand your issue, but the min value setting should be used to specify the minimum allowed number, not the minimum decimal digits. There is no built-in way to enforce users to enter only one decimal digit. If you have PHP experience, you can use the gform_field_validation hook and a few lines of PHP code to perform a custom validation. The following page has information about that hook.&#60;br /&#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>
		<item>
			<title>onmark on "Number fields (please enter a valid number error) set min to 0.1, ex. 1.2, 2.7"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/number-fields-please-enter-a-valid-number-error-set-min-to-01-ex-12-27#post-42899</link>
			<pubDate>Fri, 02 Dec 2011 15:39:12 +0000</pubDate>
			<dc:creator>onmark</dc:creator>
			<guid isPermaLink="false">42899@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there anyway to just disable number validation checking or to make this work?&#60;/p&#62;
&#60;p&#62;I have people entering orders that need to be down to the one tenth.  I set the min value to 0.1 this worked when I set it to 0.01 for 1/100th entries i.e. 1.80 but it does not work upon setting it to 0.1 and entering 1.8.. only if I enter full 100ths even with the min setting at 0.1
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
