Setting up custom calculations

  • Profile Image
    ayadov77
    Asked on September 05, 2017 at 03: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 

  • Profile Image
    Mike
    Answered on September 05, 2017 at 05:21 PM

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

    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.

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

  • Profile Image
    ayadov77
    Answered on September 05, 2017 at 06: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
  • Profile Image
    Jan
    Answered on September 05, 2017 at 09: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.