<?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: Unable to use comma in number field range</title>
		<link>https://legacy.forums.gravityhelp.com/topic/unable-to-use-comma-in-number-field-range</link>
		<description>Gravity Support Forums Topic: Unable to use comma in number field range</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:40:01 +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/unable-to-use-comma-in-number-field-range" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Unable to use comma in number field range"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unable-to-use-comma-in-number-field-range#post-64721</link>
			<pubDate>Wed, 04 Jul 2012 08:48:38 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">64721@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad to hear it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ketiga on "Unable to use comma in number field range"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unable-to-use-comma-in-number-field-range#post-64720</link>
			<pubDate>Wed, 04 Jul 2012 08:44:41 +0000</pubDate>
			<dc:creator>Ketiga</dc:creator>
			<guid isPermaLink="false">64720@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you so much for the quick reply.&#60;/p&#62;
&#60;p&#62;Got it to work with some slight adjustments:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_submission_filter&#38;quot;, &#38;quot;adddecimals&#38;quot;);
function adddecimals($form){

$_POST[&#38;quot;input_5&#38;quot;] =  number_format($_POST[&#38;quot;input_5&#38;quot;],2,&#38;#39;,&#38;#39;,&#38;#39;.&#38;#39;);

return $form;

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks again!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Unable to use comma in number field range"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unable-to-use-comma-in-number-field-range#post-64714</link>
			<pubDate>Wed, 04 Jul 2012 08:25:26 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">64714@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;1. No it is not possible to use a comma in the min/max range. These only accept whole numbers. &#60;/p&#62;
&#60;p&#62;2. I created the following hook/function to make sure it is forced to two decimal places at all times&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_submission_filter&#38;quot;, &#38;quot;adddecimals&#38;quot;);
function adddecimals($form){

$_POST[&#38;quot;input_20&#38;quot;] =  number_format($_POST[&#38;quot;input_20&#38;quot;],2);

return $form;

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You will want to change the input field number to your own. Hope this helps
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ketiga on "Unable to use comma in number field range"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unable-to-use-comma-in-number-field-range#post-64710</link>
			<pubDate>Wed, 04 Jul 2012 08:02:24 +0000</pubDate>
			<dc:creator>Ketiga</dc:creator>
			<guid isPermaLink="false">64710@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;1. It's not possible for me to use a comma in the min/max range fields when using a number field.&#60;br /&#62;
If I do, the range is ignored.&#60;/p&#62;
&#60;p&#62;2. I would also like to force two decimals behind my comma, how do I accomplish this?&#60;/p&#62;
&#60;p&#62;I have the correct dropdown with format 9.999,99 selected already but right now the number '2' is just saved to the database as '2' when I need it to be saved to my datbase as '2.00'
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
