What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Payment Integration: Allow "Custom Amount" option to be added together with the products with fixed prices

    Asked by justinjeffrey on December 09, 2015 at 06:40 AM

    I am looking to set up a Stripe integrated payment form that requires a free field for the price. This could be a form simply with a field for PRODUCT DESCRIPTION and a field for PRICE that the user fills in themselves or perhaps some presets and then just a user defined price field such as this...

    1) Product A - £10

    2) Product B - £20

    3) Other - £enter amount

    Are these scenarios possible? Thanks



    This is a re-post of a comment on Setting Up Your First Order Form

    payment form product integrated thanks
  • Profile Image
    JotForm Support

    Answered by Charlie on December 09, 2015 at 09:35 AM

    This should be possible, here's a sample test form: https://form.jotform.com/53423899260967? 

    Here's how I setup mine:

    1. Add a product that will serve as the custom input for other amounts. Here, set the price to "1". Click the "Add New Option".

    2. Here, select "Add Quantity Property" and check "Custom Quantity (Text Box)".

    3. Change the name here, in my case, I changed it from "Quantity" to "Amount". Set the default quantity to "0". With this format, any quantity is multiplied to $1.

    4. Here's an example with the live form, entered "5" on the "Custom Amount" product, 5 x $1 = $5. 

     

     

    You can try this on your form, if you need any adjustments on it, please let us know and we will help you further.

    Thank you.

  • Profile Image

    Answered by justinjeffrey on December 09, 2015 at 10:14 AM

    Thanks Charlie. The ideal would be to simply enter the exact amount of course to include pence/cents. This however is a nice work-around, it might work.

  • Profile Image
    JotForm Support

    Answered by Charlie on December 09, 2015 at 11:52 AM

    Yes, that will be the limitation of the workaround, it can only accepts only absolute values (without the cents).

    Another possible workaround is to recreate all your products using simple form fields, sum them up using the form calculation widget and pass them to your payment integration. Here's an example:

    1. I will use check box field to represent the products with fixed prices. I will assign calculation values on them by following this guide: http://www.jotform.com/help/301-How-to-Assign-Calculation-Value 

    The custom amount field will be a simple text box.

     

    2. I will then use a form calculation widget to sum up the selected products on the check box and on the text box.

    3. You can fetch the form field values by clicking the "Add Field" button.

     

    4. After that, you can pass the initial total to your payment integration by following this guide: http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field 

    You can see how it works here: https://form.jotform.com/53424806175961? 

     

    I have also forwarded this to our developers as a feature request. However, I'm unable to guarantee that this will be implemented anytime soon. But we will update you on this thread as soon as we hear any news.

    Thank you.

  • Profile Image

    Answered by justinjeffrey on December 09, 2015 at 02:24 PM

    Great, that covers all bases in a round about way. Thanks for your assistance.

  • Profile Image
    JotForm Support

    Answered by Boris on December 09, 2015 at 04:44 PM

    On behalf of my colleague, Charlie, you are most welcome. :)

    If you need any other assistance or if you hit any snags while setting it up, please don't hesitate to contact us, and we'll do our best to help.