<?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: need to add $ and number formatting to field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/need-to-add-and-number-formatting-to-field</link>
		<description>Gravity Support Forums Topic: need to add $ and number formatting to field</description>
		<language>en-US</language>
		<pubDate>Fri, 24 Apr 2026 01:22:15 +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/need-to-add-and-number-formatting-to-field" rel="self" type="application/rss+xml" />

		<item>
			<title>afgarcia86 on "need to add $ and number formatting to field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-to-add-and-number-formatting-to-field#post-240253</link>
			<pubDate>Mon, 06 May 2013 18:55:15 +0000</pubDate>
			<dc:creator>afgarcia86</dc:creator>
			<guid isPermaLink="false">240253@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to do something similar only without the &#34;$&#34;. I was having the same issue as you and saw someone fixed the code try this&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/**
* Format Fields as Currency via jQuery
* &#60;a href=&#34;http://gravitywiz.com/2012/05/24/format-field-as-currency/&#34; rel=&#34;nofollow&#34;&#62;http://gravitywiz.com/2012/05/24/format-field-as-currency/&#60;/a&#62;
*/

add_filter(&#38;#39;gform_pre_render&#38;#39;, &#38;#39;gform_format_money&#38;#39;);
function gform_format_money($form) {

if( !wp_script_is( &#38;#39;gforms_gravityforms&#38;#39; ) )
wp_enqueue_script(&#38;quot;gforms_gravityforms&#38;quot;, GFCommon::get_base_url() . &#38;quot;/js/gravityforms.js&#38;quot;, array(&#38;quot;jquery&#38;quot;), GFCommon::$version, true);

$script = &#38;#39;(function($){&#38;#39; .
&#38;quot;$(&#38;#39;.gf_money input&#38;#39;).each(function(){&#38;quot; .
&#38;#39;$(this).val(gformFormatMoney($(this).val()));&#38;#39; .
&#38;#39;}).change(function(){&#38;#39; .
&#38;#39;$(this).val(gformFormatMoney($(this).val()));&#38;#39; .
&#38;#39;});&#38;#39; .
&#38;#39;})(jQuery);&#38;#39;; 

GFFormDisplay::add_init_script( $form[&#38;#39;id&#38;#39;], &#38;#39;format_money&#38;#39;, GFFormDisplay::ON_PAGE_RENDER, $script );

return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>lotterybonds.net on "need to add $ and number formatting to field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-to-add-and-number-formatting-to-field#post-219631</link>
			<pubDate>Mon, 22 Apr 2013 16:58:19 +0000</pubDate>
			<dc:creator>lotterybonds.net</dc:creator>
			<guid isPermaLink="false">219631@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I tried pasting the snippet into functions.php and the site wouldn't load. Had to ftp original functions.php file back in.&#60;/p&#62;
&#60;p&#62;Not sure what went wrong. I tried with &#38;lt;?php at the start of snippet and without.&#60;/p&#62;
&#60;p&#62;Am I doing something wrong?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "need to add $ and number formatting to field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-to-add-and-number-formatting-to-field#post-219554</link>
			<pubDate>Mon, 22 Apr 2013 15:23:51 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">219554@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Check this out for your number field currency question: &#60;a href=&#34;http://gravitywiz.com/format-field-as-currency/&#34; rel=&#34;nofollow&#34;&#62;http://gravitywiz.com/format-field-as-currency/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;For your phone numbers question I'd suggest you try using a single line text field with input masks enabled and select the appropriate input mask.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lotterybonds.net on "need to add $ and number formatting to field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-to-add-and-number-formatting-to-field#post-219506</link>
			<pubDate>Mon, 22 Apr 2013 14:38:32 +0000</pubDate>
			<dc:creator>lotterybonds.net</dc:creator>
			<guid isPermaLink="false">219506@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I cant get the number fields to include $ sign before it. Also telephone numbers dont format whilst user enters details. price fields, phone numbers, numbers should be in format of $15,000 or (513) 489-6422. So, when someone enters number, it will show to person filling in form&#60;/p&#62;
&#60;p&#62;Once form is submitted the format is correct for telephone number. This should show when user is filling in form.&#60;/p&#62;
&#60;p&#62;Any ideas?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
