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

    How do I calculate discount based on number of products selected?

    Asked by fieryfoods on April 06, 2015 at 04:27 PM

    Hi, I've setup a form in which I need the calculation widget to have 2 discount conditions: 1. When a user chooses 4 categories, the calculation total is the same as if they chose 3. 2. When a user chooses 7 categories, the calculation total is the same as if they chose 5. Here is my form: https://secure.jotform.us/fieryfoods/2016scovieawards I've tried multiple things and can't get it to work. Can you help?
    Page URL:

  • Profile Image
    JotForm Support

    Answered by Kiran on April 06, 2015 at 06:55 PM

    Since you have the same price for each product, I think it is possible to setup this condition. However, let me check on this and get back to you how we can proceed.

    Thank you for your patience.


  • Profile Image
    JotForm Support

    Answered by Kiran on April 06, 2015 at 07:54 PM

    I've added another calculator field as the final price to the form to get the discounted price based on the total price of selected products. Please see the image below with the conditions set as per the requirement. However, you may add/modify the conditions as you need.

    With the above conditions set, the price is calculated when 4 or 7 products are selected only. If you select 5 or 6 products, it is displaying blank since no conditions set with this number. 

    Hope this information helps. Let us know if you need any further assistance.


  • Profile Image

    Answered by fieryfoods on April 09, 2015 at 06:07 PM

    Thank you!

  • Profile Image
    JotForm Support

    Answered by EltonCris on April 10, 2015 at 12:07 AM

    On behalf of my colleague, you're welcome.

    Feel free to contact us again if you have any other questions or concerns.

    Best Regards!