ticket widget calculates price and integrates with paypal how?

  • Profile Image
    Asked on February 22, 2015 at 01:52 AM

    I looked at questions posted on the ticket widget, and also at this link: http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field but I cannot understand how to get a calculation of the total from the ticket widget and then send the user to paypal for payment.

    We have many classes listed in the ticket widget and the price is part of the info. When I try to use the payment wizard it does not show any of those as an option to "get amount from". Can you tell me how to get this to work?


  • Profile Image
    Answered on February 22, 2015 at 07:46 AM


    You should use our inventory widget: http://widgets.jotform.com/widget/inventory.

    Sum up the values using our calculation widget: https://www.jotform.com/help/259-How-to-perform-calculation-in-the-form. You should do the calculation as:

    Multiply the item by its own price, enclose it with brackets.


    Send the calculation widget to Payment field by following the instructions from this guide: https://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field.


    Example form: http://www.jotformpro.com/form/50522800708953

    Let us know if you need any further assistance.


  • Profile Image
    Answered on February 22, 2015 at 12:18 PM

    OK, I found that too after looking around. I have so many events to sell though, but will try tighten up the padding with css to make it not so spread out. The inventory list seems really suited to just a few items visually as is.

  • Profile Image
    Answered on February 22, 2015 at 01:17 PM

    I am glad that my fellow colleague's proposed solution seem adequate enough for you to explore. Do get back to us with your outcome or if you ever feel the need for further assistance, please let us know.


  • Profile Image
    Answered on February 22, 2015 at 05:47 PM

    Do you have to create a new api key for each item for it to work? It seems when I don't that the counting is weird on subsequent items.

  • Profile Image
    Answered on February 22, 2015 at 06:58 PM

    You can reuse the same API Key for each widget you will use on the form.

    You can just use the duplicate action to duplicate the widget several times on the form (so it will use the same API key)

    user guide: http://www.jotform.com/help/242-How-to-Manage-Multiple-Fields

    Let us know if you need further assistance.


  • Profile Image
    Answered on February 22, 2015 at 07:02 PM

    that's what I was doing and on the duplicates it is putting weird #s in as what is left, so something isn't right. I put in total inventory of an item as 36 and it shows 41.1

    Could it be because there was previously a ticket widget in the same form, even though I deleted it already?

  • Profile Image
    Answered on February 22, 2015 at 07:46 PM

    Does each item need a unique item name? ( I was trying to put prices there and some are the same, and then I was using the label to differntiate)

  • Profile Image
    Answered on February 23, 2015 at 02:57 AM


    The inventory widgets in your form are working fine as of checking.

    Once the form is submitted, the numbers left will be automatically deducted with the quantity you entered once you visit the form again.

    With regards to the item name, it doesn't have to be unique. You can use the same item name you want.

    If I have missed anything with your question, let us know here. Thanks!