<?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: Accesing Price as Numeric Value</title>
		<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value</link>
		<description>Gravity Support Forums Topic: Accesing Price as Numeric Value</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 21:49:08 +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/accesing-price-as-numeric-value" rel="self" type="application/rss+xml" />

		<item>
			<title>oldhat on "Accesing Price as Numeric Value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value#post-237258</link>
			<pubDate>Sat, 04 May 2013 16:24:32 +0000</pubDate>
			<dc:creator>oldhat</dc:creator>
			<guid isPermaLink="false">237258@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just following up on this. I found a post here -&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_currencies&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_currencies&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;with details of how to re-format the currency string. I've removed the euro symbol and now I can use as a number. Not the most elegant solution but it's fine for my needs.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>oldhat on "Accesing Price as Numeric Value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value#post-235452</link>
			<pubDate>Fri, 03 May 2013 13:34:45 +0000</pubDate>
			<dc:creator>oldhat</dc:creator>
			<guid isPermaLink="false">235452@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;I have a form with a fixed price product (it's a registration fee). In the admin area I add it as a Product of type Single Product. I disable the Quantity and enter the Price as 0.50. When I click outside of the Price box the price is automatically reformatted to include the currency - i.e. 0,50€. &#60;/p&#62;
&#60;p&#62;When I run the validation script I use the following code. &#60;/p&#62;
&#60;p&#62;$form = $validation_result[&#34;form&#34;];&#60;br /&#62;
foreach($form['fields'] as &#38;amp;$field){&#60;br /&#62;
var_dump($field);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;In the output for this field the only place I can find the figure 0.50 is&#60;/p&#62;
&#60;p&#62;[&#34;basePrice&#34;]=&#38;gt;&#60;br /&#62;
  string(8) &#34;0,50 €&#34;&#60;/p&#62;
&#60;p&#62;But this is as a string, not a number. &#60;/p&#62;
&#60;p&#62;Best Regards.&#60;/p&#62;
&#60;p&#62;Michael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Accesing Price as Numeric Value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value#post-235318</link>
			<pubDate>Fri, 03 May 2013 11:59:21 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">235318@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm pretty sure the value of that field is a number and not a string. Have you tried to access it yet?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>oldhat on "Accesing Price as Numeric Value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value#post-235315</link>
			<pubDate>Fri, 03 May 2013 11:52:19 +0000</pubDate>
			<dc:creator>oldhat</dc:creator>
			<guid isPermaLink="false">235315@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;I'm just using that as an example to see if there is a simple way of getting the price in numeric format. &#60;/p&#62;
&#60;p&#62;The actual script I'm working on is for integration with a third party payment system. I'm using gform_validation to send the payment information to a payment processor. I have it working fine, but currently have to hard code the amount as it won't work with a non-numeric figure.&#60;/p&#62;
&#60;p&#62;Thanks.&#60;/p&#62;
&#60;p&#62;Michael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Accesing Price as Numeric Value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value#post-235310</link>
			<pubDate>Fri, 03 May 2013 11:46:10 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">235310@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What are the two things you want to do? If the price is higher or lower, what are you hoping to have happen?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>oldhat on "Accesing Price as Numeric Value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value#post-235297</link>
			<pubDate>Fri, 03 May 2013 11:40:42 +0000</pubDate>
			<dc:creator>oldhat</dc:creator>
			<guid isPermaLink="false">235297@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;It's on a local server I'm afraid. Can you tell me how I would perform a calculation - e.g. detect if the price is less than 10?&#60;/p&#62;
&#60;p&#62;Thanks.&#60;/p&#62;
&#60;p&#62;Michael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Accesing Price as Numeric Value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value#post-235261</link>
			<pubDate>Fri, 03 May 2013 11:12:44 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">235261@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you link to your form as it exists currently? You should be able to perform calculations on the price without doing anything special.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>oldhat on "Accesing Price as Numeric Value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value#post-235254</link>
			<pubDate>Fri, 03 May 2013 11:08:48 +0000</pubDate>
			<dc:creator>oldhat</dc:creator>
			<guid isPermaLink="false">235254@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;Thanks for getting back to us. I just want to perform a calculation on the value so I need to strip all of the currency formatting from it and deal with it as a number. Basically if price is less than 10 do something, else do something different. &#60;/p&#62;
&#60;p&#62;Thanks. &#60;/p&#62;
&#60;p&#62;Michael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Accesing Price as Numeric Value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value#post-235219</link>
			<pubDate>Fri, 03 May 2013 10:52:02 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">235219@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What do you mean by &#34;access&#34;. What are you attempting to do?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>oldhat on "Accesing Price as Numeric Value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/accesing-price-as-numeric-value#post-235065</link>
			<pubDate>Fri, 03 May 2013 08:25:01 +0000</pubDate>
			<dc:creator>oldhat</dc:creator>
			<guid isPermaLink="false">235065@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;Apologies if this is an obvious question but can't find anything in the documentation. I have a pricing field - single product. When I display the price it displays with the currency symbol intact - e.g. $1.50. How do I access the numeric version of that - i.e. 1.5?&#60;/p&#62;
&#60;p&#62;Many Thanks.&#60;/p&#62;
&#60;p&#62;Michael
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
