How can I add an inventory to my products?

  • ReForestLondon
    Asked on March 10, 2021 at 10:37 AM

    Hello,


    I am creating an order form and have a couple of questions.

    1) For the product list is there a way to add and track inventory with this form option?

    2) Is it possible to set a quantity limit for the product list? I would like people to only be able to choose 2 items, either 2 different products, or 2 of one product.

    3) The products on the order form are free, is it possible to hide the Square payment integration unless they select an option that has a monetary value? (in this case we have donation options).


    If these options are not possible, is there a better way to have a product selection that inventory can be added to and limitations on quantities?

    Jotform Thread 2956368 Screenshot
  • Bojan Support Team Lead
    Replied on March 10, 2021 at 2:10 PM

    Greetings.

    1) For the product list is there a way to add and track inventory with this form option?

    This is not possible by using a payment gateway, however, we have an Inventory widget that allows you just that:
    https://eu.jotform.com/widgets/inventory

    You will need to use these instead of the gateway, calculate the price using the form calculation widget, and then copy the value from the calculation to the payment field. However, since all your products are free, you don't need to use this.

    2) Is it possible to set a quantity limit for the product list? I would like people to only be able to choose 2 items, either 2 different products, or 2 of one product.

    This is not possible using the product list, but it is with the Inventory widget. You can simply add Form calculation and add the values of widgets together:

    screenshot 4174 Screenshot 10

    This calculation can be hidden on your form, so it doesn't confuse the users.

    Next, you can use conditional logic to disable form submission:

    show hide fields Screenshot 21

    Here, you can check if the total is greater than 2 and then hide the submit button:

    screenshot 4175 Screenshot 32

    3) The products on the order form are free, is it possible to hide the Square payment integration unless they select an option that has a monetary value? (in this case we have donation options).

    If you are using the inventory widget, you can add a Single choice element, where you will ask users if they wish to make a donation. Then, using conditional logic, you can display the payment field.

    You can also update Square to collect donations, so users can enter custom values:

    screenshot 4176 Screenshot 43

    I've created a form for you can test this:
    https://form.jotform.com/210685077930055

    Feel free to test it and clone it to your account to see the conditions behind it. You can click here to see how to clone a form.

    Let us know if you have any additional questions.