Can a field in my form be used to poplulate the subtotal field in my PayPal element?

  • Profile Image
    rogerfm
    Asked on April 14, 2017 at 06:04 AM

    My service is a job posting board and I charge customers per day the job is listed. For example, A customer might have a job listed for 8 days at $0.25 per day for a total cost of $2.

    Here is my form. 

    https://form.jotform.ca/71032345799259

    I'd like to know if I can have the price in my paypal element be populated by the field called "Total cost for this posting"

    If not, can you please suggest a workaround.

    Thanks,

    Roger

  • Profile Image
    Sven
    Answered on April 14, 2017 at 08:04 AM

    This is indeed possible, what you need to do, is change the "Total cost for this posting" to a Form Calculation widget, add your calculation, and then follow the guide below to set your PayPal account to accept the calculation value. 

    How to Pass a Calculation to a Payment Field

     

    Alternatively, you can keep the "Total cost for this posting field" as it is, and add  a hidden Form Calculation widget, and set it to get the value from the cost field, and then continue as explained in the guide.

     

    I have cloned your form, and made the changes, so you can clone it and start using it, via this URL:

    https://form.jotformpro.com/71033272854958

     

    Here's how to clone an existing form to your account:

    How to Clone an Existing Form from a URL

     

    Thank you.

  • Profile Image
    rogerfm
    Answered on April 14, 2017 at 10:23 AM

    Thanks for the help, Sven. I wasn't aware of how to use those widgets. 

    Can you help me with one more thing? I'd like to have a second page to this form where my customer pays via PayPal. I'd like them to put in their name, address, and credit card info and click a button to pay directly from the form. If possible, I'd like the name, email, and address fields to auto-complete on future transactions.

    Is this possible?

  • Profile Image
    ashwin_d
    Answered on April 14, 2017 at 11:27 AM

    Hello rogerfm,

    I have moved your second question to a new thread so that we can address it separately. You will be answered in the following thread:  https://www.jotform.com/answers/1119524

    Thank you!

  • Profile Image
    rogerfm
    Answered on April 14, 2017 at 03:08 PM

    can you please help me with one last step on this form? When a customer begins to fill out my form, the default value for my calculated field is 4317.25. I would like this field to be blank before the 'application date' field is filled. 

  • Profile Image
    Mike_G
    Answered on April 14, 2017 at 04:53 PM

    I have inspected to your form to know how it works. If I'm understanding your concern correctly, you just have to do two things to your form to make it work as you described in your most recent reply to this thread.

    First, you need to set a default value on the "Total cost for this posting" field in your form.

    And second, get the value of the "Total cost" Form Calculation widget from the "Total cost for this posting" field.

    I hope this helps. If you need any further assistance, please feel free to contact us again anytime.

    Thank you.