Calculate price based on the Distance widget output

  • Repenning_Bernd
    Gefragt am 20. Januar 2024 um 05:13
    And can I use the output of the widget in the next step to calculate a price with it?
  • Mary Jotform Support
    Geantwortet am 20. Januar 2024 um 05:28

    Hi Bernd,

    Yes, calculating a price based on the output from the Driving Distance widget is possible. Let me walk you through it:

    1. On your widget settings, you need to scroll down and search the option Default Distance Units.

    2. Set miles as the unit.

    3. After that, you need to enable auto-calculate:

    How to calculate price based on distance between two addresses with widgets? Image 10 Screenshot 10

    The result of the calculation will be a number. Then, you can use this number in Form Calculation widget.

    1. On your widgets, add the form calculation widget

    2. Use that value in your Driving Distance widget to calculate a price. You will see Driving Distance result in your From Calculation widget 'add field' area. Then you will be able to calculate what you need. For example, your Driving Distance result equals = 10, you can multiply with the constant value and the 'Form Calculation' widget's result will be shown in the input area. 

    How to calculate price based on distance between two addresses with widgets? Image 21 Screenshot 21

    You can check the guide for detailed information.

    Give it a try and let us know if you have any other questions.