Calculation for mileage and selected vehicle

  • vasilica iulian fuioaga
    Asked on July 29, 2020 at 6:55 PM
    Everything works now to calculate the distance and price per mile but I also need additional calculations for the type of Van and price for each Van to give the customer the total price for the mileage and can type. Each van has a different price. Also if the distance is only for 5 miles I need to create an option for minimum price for each van type. Do you think is possible to do this?
  • John Support Team Lead
    Replied on July 29, 2020 at 7:16 PM

    I can't find a VAN field yet on this form: Courier. Could you please set it up on the form first so we can provide a specific solution that you can use. We'd like to know what type of field you would use.

    I suggest using a Single Choice field for this if you want the user to only select one VAN per submission. Otherwise, use a Multiple Choice field. Then assign a calculation value for each option. Here's a guide on How-to-Assign-Calculation-Value. This is where you will put the VAN prices.

    Calculation for mileage and selected vehicle Image 10

    Then add that field to the formula of the FORM CALCULATION widget:

    15960644052480520 2 Screenshot 21

    That should calculate the MILEAGE COST and the selected VAN.

    Demo formhttps://form.jotform.com/202090937931052 

    Also if the distance is only for 5 miles I need to create an option for minimum price for each van type.
    I'm not quite sure what minimum price option you would like to add. Can you please cite an example so we can try to look for a workaround?

  • vasilica iulian fuioaga
    Replied on July 29, 2020 at 9:28 PM
    I will try today to see how this calculation works and if I need more help I write you.
    Thanks again!
    ...
  • vasilica iulian fuioaga
    Replied on July 30, 2020 at 10:28 AM
    I add the van price calculation to and works,thanks! After I finish to build my form can you please tell me what is the best way to added to my website on Wix? I copy the code and paste to my wix but is noting showing on my page. Also do you have tracking options for this form to add for the customers to check the delivery progress?
    ...
  • Patrick_R
    Replied on July 30, 2020 at 11:48 AM

    Hello! Please try our Wix guide to embed your form to your site: https://www.jotform.com/help/70-Adding-a-Form-to-Your-Wix-Site

    - Also do you have tracking options for this form to add for the customers to check the delivery progress?

    As far as I understand your requirement, you want to give your users the parcel tracking capability. If I didn't understood your requirement, please feel free to correct it.

    If I understood your query correctly, then please note that it won't be possible via JotForm. Our tool can be used to collect data from your users only. Maybe you'll need a custom solution for this.

    Thank you!

  • vasilica iulian fuioaga
    Replied on August 1, 2020 at 11:28 AM
    For the price text and price amount can I change the colour? I want to make this a little different than other options for the customer to see.
    ...
  • Patrick_R
    Replied on August 1, 2020 at 12:36 PM

    You may use custom CSS code to change color of these fields.

    Can you please share your Form ID/URL with us so that we could take a look?

    Thank you!

  • vasilica iulian fuioaga
    Replied on August 2, 2020 at 7:28 AM
    https://eu.jotform.com/build/202095719165357
    Is possible to see this price on the middle of the form? Sam lane just on the middle if is possible and different colour which one can match with the form.
    Thanks!
    Sent from Mail for Windows 10
    ...
  • vasilica iulian fuioaga
    Replied on August 2, 2020 at 8:28 AM
    Another problem I see is the date where I can see only one number.If I chose 30-08-2020 on the form I can see only 3-0-2020.I need to see this all numbers on the square.
    Sent from Mail for Windows 10
    ...
  • Girish JotForm Support
    Replied on August 2, 2020 at 9:58 AM

    Thanks for sharing the form URL.

    For the price text and price amount can I change the color? I want to make this a little different than other options for the customer to see. Is possible to see this price on the middle of the form? Sam lane just on the middle if is possible 

    I understand that you are referring to this field and you want to change the color of the label "Price" and that of the input amount:

    15963757860208 12 Screenshot 10

    Please add this CSS code:

    #label_31.form-label.form-label-top{

    color: red;

    text-align: center;

    }

    #input_31.form-textbox {

    color: red;

    }

    li#id_31 {

    text-align: center;

    }

    Related guide: How-to-Inject-Custom-CSS-Codes 

    You can change the color to any other color as per your requirement.

    Another problem I see is the date where I can see only one number. If I chose 30-08-2020 on the form I can see only 3-0-2020. I need to see all numbers on the square.

    Are you referring to the Pickup date field? If yes, I can see the date correctly:

    15963766490208 13 Screenshot 21

    Are you seeing the single digits on the date after you submit the form?

    Please check and let us know.

  • myfuioaga
    Replied on August 3, 2020 at 10:28 AM
    Hello again.
    I connected my Stripe account and I like to know how to setup for the customer to make a payment for the price which one come up for the courier service?

    ...
  • Anita_K
    Replied on August 3, 2020 at 11:30 AM

    Hi,

    since this question is not related to the previous issue, I have moved it into a separate thread in order to assist you better and will be addressing it here:

    https://www.jotform.com/answers/2488193

  • myfuioaga
    Replied on September 27, 2020 at 5:28 AM
    Hello again,
    I start to build another form and I have a problem to calculate 4 diferent options togheter. Can you please help me with this? This is the form :
    https://eu.jotform.com/build/202614612387352

    Sent from Mail for Windows 10
    ...
  • John Support Team Lead
    Replied on September 27, 2020 at 5:42 AM

    I have moved your last question to a separate ticket and will be addressing that shortly via this link: https://www.jotform.com/answers/2600459

  • myfuioaga
    Replied on November 9, 2020 at 1:28 PM
    Hello
    How can i add 4 pictures with my vans for the customer to chose the right vehicle for there booking? For each van I need to add different price and the calculation.
    ...
  • Anita_K
    Replied on November 9, 2020 at 2:38 PM

    Hi,

    I have moved your last question into a new thread to assist you better:

    https://www.jotform.com/answers/2689576