What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    calculation using miles when feet is the calculated result

    Asked by ladeko on March 08, 2016 at 10:29 AM

    Hello,

     

    I have the distance calculator widget on my form.  I have this form setup to calculate the distance in "miles" between 2 addresses and it works perfectly in that regard.

     

    However, if the distance between 2 addresses is less than 1 mile (for example 500 feet) it is calculating the feet.

    For example the formula is miles x $4.00.  So if the customer is traveling 2 miles it calculates 4x2 = $8. But if the distance is 500 feet, it calculates 500 x 2 miles = $1000.

    How can I fix this?  If you want to test it out go to my form and select service type = point-to-point and put in an address that is less than 1 mile in distance. (for example your address and your next door neighbors address)

    I gave the url for my form below:

     

    https://form.jotform.com/60665453985165

     

    How can I fix this?

    Page URL:
    https://form.jotform.com/60665453985165

    distance calculator JotForm next select hello
  • Profile Image
    JotForm Support

    Answered by Kiran on March 08, 2016 at 12:52 PM

    I'm checking on this issue. Please allow me some time to run few tests and get back to you with relevant information. 

    Thank you for your patience. 

  • Profile Image
    JotForm Support

    Answered by Kiran on March 08, 2016 at 01:24 PM

    Thank you for being patient. As I check the issue further, you may add a new field to calculate the final when the distance is displayed in feet by using a condition as shown below:

    Please see the demo form below that can help you with calculating when the distance is feet.

    https://form.jotform.com/60674713996974

    Hope this information helps! Please let us know if we can be of any further help.