Trying to create a form with a dual purpose

  • joanfeldman
    Asked on November 2, 2017 at 4:03 PM

    I created a form that has the option to order concert tickets as well as dinner options. I can't figure out a way to have only 1 calculation for all of the items. We are using Authorize.net

  • aubreybourke
    Replied on November 2, 2017 at 5:25 PM

    I cloned your form and modified it:

    https://form.jotform.com/73056239426963

    You can clone this form:

    How to Clone an Existing Form from a URL  


    To recap, I removed your products and added a form calculation widget. I then added number fields for your products and in the calculation widget I set it up like this:

    1509657709Microsoft Edge 02 11 2017 21 2 Screenshot 10

    In your payment integration I set it up to take a user defined amount from the form calculation widget.

    You can read the full guide to this approach here:

    How to Pass a Calculation to a Payment Field  

    Finally, I marked the calculation field as hidden. It will continue to work in the background, and pass the total to your payment integration.

  • joanfeldman
    Replied on November 7, 2017 at 9:51 AM

    Thank you. It's not calculating properly though. I can still see the total from the Authorize.net and the total from the Calculations Wizard but they are showing 2 different amounts.

  • aubreybourke
    Replied on November 7, 2017 at 11:18 AM

    I see on your form https://form.jotform.com/73044411467149 that you are trying to use the inventory widget and sell products with Authorize.net.

    It isn't possible to use both. If you want to use the inventory widget you cannot "sell products" via your payment processor. Instead you must use a "user defined amount" and pass it your calculation. Like in my demo:

    https://form.jotform.com/73056239426963

    You can clone this form and it will all work:

    How to Clone an Existing Form from a URL  

    You can also modify the clone as you see fit.

  • joanfeldman
    Replied on November 8, 2017 at 11:20 AM

    One more question. When I cloned your form, it's telling me there is no API Key for the concert tickets. I put the API key info into Authorize.net. What am I missing?

  • joanfeldman
    Replied on November 8, 2017 at 11:22 AM

    I figured it out! Thank you!