Calculation field: How to change prices depending on options

  • speejack
    Asked on May 22, 2014 at 7:58 AM

    Hello,

    Thank you for your explanation earlier. However, I still can't figure out how to set it up properly.

    Pls take a look at this form: http://www.jotform.com//?formID=41395497948373

    The client fills in the amount of minutes, which is multiplied by 1 ($ an hour), than they have 2 more options to choose, these options need to be included in the price calculation. Even after following instructions and selecting them I don't know how to get this added up into the calculation field.

    Can you help?

    Thanks a lot,

    Jack

  • Aytekin JotForm Founder
    Replied on May 22, 2014 at 11:28 AM

    First of all you should really use radio buttons instead of checkboxes. Since the user want the user to choose EITHER standart OR VERBATIM. You do not want them to choose both. 

    I have prepared an example here:

    http://form.jotformpro.com/form/41414023522944?

     

    Please try it first and see if this is what you wanted. If it is, you can either clone the form or apply it to your form. Here is a screenshot tutorial:

    First I added two hidden fields. You make fields hidden by adding a regular field and then selecting "Hide" from options:

    Calculation field: How to change prices depending on options Image 1 Screenshot 50

     

     

     

     

     

    So, after adding Type Value and Turnaround Value, I need to make them change depending on what the user choses. Again, checkboxes makes this slightly incorrect. If you use radio buttons they will work better. 

    For each one I added a condition:

    Calculation field: How to change prices depending on options Image 2 Screenshot 61

     

    The calculation will set a value to the hidden fields:

    Calculation field: How to change prices depending on options Image 3 Screenshot 72

     

    Next, I added these fields to the calculation field:

    Calculation field: How to change prices depending on options Image 4 Screenshot 83

     

    It works pretty well. If you have any further questions please let me know.

  • Aytekin JotForm Founder
    Replied on May 22, 2014 at 11:41 AM

    That's actually a much simpler solution. Instead of creating hidden fields, give each option a calculation value. And the final calculation will be similar.