<?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: Zip code distance calculation function</title>
		<link>https://legacy.forums.gravityhelp.com/topic/zip-code-distance-calculation-function</link>
		<description>Gravity Support Forums Topic: Zip code distance calculation function</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 09:01: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/zip-code-distance-calculation-function" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Zip code distance calculation function"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/zip-code-distance-calculation-function#post-24773</link>
			<pubDate>Wed, 04 May 2011 11:44:44 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">24773@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Tony,&#60;/p&#62;
&#60;p&#62;There would be no easy way to accomplish this by default with Gravity Forms though per your example, it is technically possible.&#60;/p&#62;
&#60;p&#62;In regards to customizations, there are a lot of ways to skin this cat. The easiest is probably to add a bit of custom javascript which fires after a zipcode is entered. If the zipcode is valid, it would return the mileage and price (retrieved from a DB or a static array). If not valid, it would alert the users that they need to enter a valid zip.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tonywoest on "Zip code distance calculation function"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/zip-code-distance-calculation-function#post-24759</link>
			<pubDate>Wed, 04 May 2011 02:48:06 +0000</pubDate>
			<dc:creator>tonywoest</dc:creator>
			<guid isPermaLink="false">24759@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, I would like to know if it would be possible for a customer to enter their zip code and based on their Zip Code they enter it would calculate the distance from the zip code entered to point B, Point B (our place of business) would be the center point covering a 40 mile radius.&#60;/p&#62;
&#60;p&#62;The form would be used to calculate the distance that we would have to travel from our business to the customers Zip Code. We have the values in a spreadsheet that shows each zip and the distance in miles with the dollar value based on the distance:&#60;/p&#62;
&#60;p&#62;zip 12345 = 34 miles ($25)&#60;br /&#62;
zip 12346 = 38 miles ($27)&#60;br /&#62;
zip 12347 = 42 miles ($32)&#60;/p&#62;
&#60;p&#62;I can make each zip code a product with a drop down but the drop-down would be to long as there are over 280 zip codes making the drop-down not the best choice. &#60;/p&#62;
&#60;p&#62;I was hoping that if the customer enters his zip code it would do a database look-up and return the correct mileage for that particular zip code with the dollar amount assigned to the distance with a buy now button.&#60;/p&#62;
&#60;p&#62;Kind Regards,&#60;br /&#62;
Tony
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
