Can forms calculate price based on Customer Choices

  • troyg1211
    Asked on June 18, 2015 at 12:50 PM

    On my forms Clients have to choose how many hours they want and then put from what time to what time. Ex 4 hours form 3 pm to 7 pm. The problem is they will check the box for 4 hours and Schedule 5 or 6 hours. Ex. 4 hours from 2 pm to 8 pm. 

    What I would like the form to do is allow Clients to put in the hours and give them the price based upon the hours they schedule.

    Call Troy anytime for questions or more info about my question. 678 608 7348

  • David JotForm Support
    Replied on June 18, 2015 at 2:16 PM

    Hi,

    Using a "Time" field, you can get a calculation between two different times:

    Can forms calculate price based on Customer Choices Image 1 Screenshot 40

    You can then forward the total hours to a number field so that you can use the field to evaluate the total cost.  This can be done using the "Update a form field" condition:

    Can forms calculate price based on Customer Choices Image 2 Screenshot 51

    You would then update another field, I made mine total cost, with the appropriate values depending on the total time:

    Can forms calculate price based on Customer Choices Image 3 Screenshot 62

    This is the resulting form:

    http://form.jotformpro.com/form/51685028150957

    You can clone it to see the full setup:

    http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    This would give the total time based on the range of times they choose and then the total cost based on that amount of time.