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

    How to calculate a fee based on distance between two addresses using the Driving distance and the Form calculation widget?

    Asked by nicgrev on February 20, 2016 at 11:01 AM

    I want to have a form where a user can put in a pick up and drop off point in the directions widget and then pay an amount based on the output from the directions widget. EG input- 'point a' to 'point b' output- 10Km. Pricing widget takes the 10Km value and works out the price to customer. So if the equation is $5 per Km price equals $50.

    Seems like this might be just a little too advanced for this platform but if you can do it that would be killer!! 

  • Profile Image
    JotForm Support

    Answered by Kevin_G on February 20, 2016 at 10:40 PM

    Yes, this is possible, you will need to use these widgets.

    Form Calculation Widget.

    Driving Distance Widget.

    Follow this guide to add the widgets to your form: http://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form

    First, add the Driving Distance widget to your form.

    Add the Form Calculation widget as well.

    Once both widgets are on your form, then open the wizard of the Form Calculation widget and add this operation.

    Take a look on my cloned form: https://form.jotform.com/60508097542962.

    Feel free to clone it.

    Hope this helps.

  • Profile Image

    Answered by nicgrev on February 21, 2016 at 05:55 AM

    thanks kevin. Is there a way of getting that 'price' input into a payment widget?

  • Profile Image

    Answered by nicgrev on February 21, 2016 at 07:20 AM

    I managed to work it out. Great stuff

  • Profile Image
    JotForm Support

    Answered by BDAVID on February 21, 2016 at 11:56 AM

    On behalf of my colleague, you are welcome! Please open a new thread if you need anything else, we will be glad to assist you.

  • Profile Image

    Answered by pradeep  on May 07, 2017 at 08:50 AM

    hi i am pradeep from india. i have opened a cab service. i just want to know about the fare calculator. i am using the wordpress. in that i am using the visual form builder. i want to add a google api. please tell me how to add the field with the script code... 

     

    if the customer visits our website they will search for cabs by seeing the form

    in that they will chose a origin city and the destination city. so that should be automatically seen and the kms should be calculated by it

     

    can u pleae tell me