Conditional logic – set pricing based on geographic location

Hello fellow gravity Forms users. I am putting together a bid for a carting company. A big part of their business is dumpster rental.

They sent me a link to a competitor’s website who is pricing their dumpsters based on how far the customer is from their facility: https://www.cherryhillinc.com/dumpster-pricing.php.

You can see this in action if you scroll down to the grid of dumpsters and click the “Price Today” button. If you choose different towns, the price changes. This is likely based on the radial distance from Cherry Hill’s facility.

My client would like their new dumpster rental page to do this.

My question is, would I have to painstakingly enter all of the towns within a certain distance for each price range, or is there a way for Gravity forms to calculate the distance between two points on the map and base that on a specific price range?

Hey Mark! Bit of a late reply here, but if driving distance works for the pricing, this is now doable with Address Autocomplete 2.0.

You can set the facility as the starting point, have the customer enter their address, then use the distance between them in a calculation to work out the price.

Here’s a quick rundown. :smiling_face:

Thanks Dan. I’ll look into that for the next time.