Create a calculation field value and pass it to total.

  • Profile Image
    NosaraTaxiCab
    Asked on March 08, 2018 at 04:47 PM

    Hi,

    I have a problem with the Paypal Integration.

    I would like that the service specified and selected on my first page + Paypal preference chosen would be automatically the product for Paypal too.

    I do not want to see all options, because customers already choose the option when they choose for the shuttle services on first page, and because I cannot create more than one paypal block, I'm very confused regarding the right way to create and build it.

    So let's say...

    page one customer choose Nosara to/from Liberia at $130. There are other options offered for other shuttle services. They chose one depending on their needs.

    Then they choose Cash or Paypal payment preference - then chose Paypal would redirect to the Paypal block payment and they would only see one line for their selected shuttle. Not all the options that I offer.

     

    Thanks for helping me!!!!

  • Profile Image
    Jed_C
    Answered on March 08, 2018 at 06:19 PM

    Here's what you need to do.

    1. Add a calculation value to the fields so when user selects ex. Nosara to/from Liberia at $130.

    1520550797use_calculation_value.png

    2. Add a form calculation widget to get the value of the "Shuttle Services" field

    1520550864form_calculation.png

    1520550937add_shuttle_service_field.png

    3. Create a User Defined Amount for your PayPal payment

    1520550989user_defined_amount.png

    4. Get the price of the form calculation widget that you have added

    1520551126get_price_from.png

    Please check my sample form here https://form.jotform.com/80667042041954.

  • Profile Image
    BJoanna
    Answered on March 15, 2018 at 03:38 PM

    You can add additional number field to your form were the users can enter the number of people and add that field to your calculation.

    1521142439calc.JPG

    The Default value of the this field should be set to 1.

    1521142381value.JPG

    You can set the condition to show that field only when Shared Shuttle Nosara option is selected.

    1521142496cond.JPG

    Here is my demo form: https://form.jotform.com/80735777617974 

    Feel free to test it and clone it

  • Profile Image
    NosaraTaxiCab
    Answered on March 16, 2018 at 02:06 PM

    Hi Joanna, Thanks for your help


    The thing is that I want to # of passengers to be applied ONLY for the shared shuttle at 40$/pp.

    Other services - the price do not change and stays the same for 1 or 6 people...


    Can you please help me with that?

    Thank you

  • Profile Image
    BJoanna
    Answered on March 16, 2018 at 02:40 PM

    Have you tested my form? 

    The price will remain the same for other services. The number field where users can select the # of passengers will be shown only when 'Shared Shuttle Nosara to/from Liberia $40pp' option is selected. If any other option is selected the field with the # of passengers will not be shown.

    I added one additional condition to the form that will refresh the # of passengers to 1 if the option Shared Shuttle is not selected. 

    1521225175test.JPG

    1521225404calc1.gif


    If my form is not working like you wanted, please tell us which part is not working correctly and how it should work exactly. 

  • Profile Image
    NosaraTaxiCab
    Answered on March 16, 2018 at 03:20 PM

    Ok thank you. 


    I would also like to add a 6% tax to the total when people pay with Paypal.

    Do you know how I could add this value?


    Thank you very much

  • Profile Image
    Victoria_K
    Answered on March 16, 2018 at 05:11 PM

    Of course,

    You need to create an additional field to hold total before sending it to PayPal.

    This field would get the total from "Shuttle services total" based on a condition if the payment preference is not equal to PayPal, and to multiple the "Shuttle services total" by 1.06 if the PayPal is selected:

    1521234550screenshot.png

    Here is my test form:

    https://form.jotform.com/80746955683977

    Feel free to clone it!

  • Profile Image
    NosaraTaxiCab
    Answered on March 19, 2018 at 04:57 PM

    Hi ! 


    I would also have some help for something.

    What are your solutions for the following problem >>


    I want PAYPAL option to be set by default ONLY when Shared Shuttle Services Liberia-Nosara at 40$pp is selected as Shuttle Service.


    The solution I found is this one... (see attached screen shot) - THANKS1521493055paypal for payment reference.p

  • Profile Image
    Jed_C
    Answered on March 19, 2018 at 06:14 PM

    When you say set by default, do you mean to say that you want the field to be enabled when "Shared Shuttle Services Liberia-Nosara" is selected? If so, the condition you need to select is the "Enable/Require field"

    10-14-2017-1507976964.png

    The masking will actually add a masking character. Is that what you need? Please refer to our guide here https://www.jotform.com/help/358-How-to-Set-Content-Mask-on-a-Form-Field-Based-on-Another-Field-Input so you can check.

    Looking forward for your response. 

  • Profile Image
    NosaraTaxiCab
    Answered on March 22, 2018 at 05:52 PM

    In fact,


    I want Paypal to be set by default when people choose Shared Shuttle Service.

    I do not want that the CASH and CREDIT CARD options appear.


    Thank you very much

    Caroline

  • Profile Image
    Kevin_G
    Answered on March 22, 2018 at 09:43 PM

    You may handle this with the show/hide conditions, this way you can show options only when the desired option is selected, this guide will help you doing so: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer 

    I hope this helps.