Setting up custom calculations

  • ayadov77
    Asked on September 5, 2017 at 3:53 PM

    Hello & Thanks in advance for helping,

    I need to calculate total price for (single journey and return journey)

    I have  calculated multiple fields into Total Field,  that was easy thanks to this forum,

    Now I need to double the value of field (City) to (Total)  BUT only when (RETURN) has been ticked.

     

    https://form.jotformpro.com/72471319245961

    example Single Journey:

    Delft To Schiphol Airport Cost €69

    with Child Seat +€5

    Total: €74.

     

    example Return Journey:

    Delft City To Schiphol Airport Cost €69

    Schiphol Airport To Delft City Cost €69

    with Child Seat +€5

    Total: €143.

     

    appreciate your help 

  • Mike
    Replied on September 5, 2017 at 5:21 PM

    You may try adding a separate Return calculation field and including it into the Total calculation formula.

    Setting up custom calculations Image 1 Screenshot 30

    The Return field can be populated with the 'Update / Calculate Field' condition. Something like if the checkbox is equal Return, then populate 'City' value into the Return calculation field.

    Setting up custom calculations Image 2 Screenshot 41

    If you need any further assistance, please let us know.

  • ayadov77
    Replied on September 5, 2017 at 6:44 PM

    THANK YOU FOR YOUR HELP,

     

    I managed the calculation, 

    now I need to redirect clients to paypal payment only when they choose (payment by paypal), how do i do that? please
  • Jan
    Replied on September 5, 2017 at 9:46 PM

    Glad to hear that your calculation is now working properly.

    I need to create a separate thread for your next issue. Please wait for our reply to this thread: https://www.jotform.com/answers/1240548.

    Thank you.