Inventory Widget not changing accurately

  • Grahammilton1985
    Asked on October 5, 2016 at 6:13 AM

    Hi

    I space off line so i need to change the quantity available.

     

    When I change the Quantity to 0

    Inventory Widget not changing accurately Image 1 Screenshot 30

     

    It shows as having 1 left...

    Inventory Widget not changing accurately Image 2 Screenshot 41

     

    I have experienced this with other forms...

     

    When every I adjust the Quantity available it basically just make up a number!

     

    Thanks

     

    Graham

     

  • omerorkun JotForm Data Scientist
    Replied on October 5, 2016 at 8:09 AM

    Hi,

     

    I cloned your form and I replicated the issue as well. To resolve your issue I suggest you another widget to use.

     

    Our widget named "Quantity Gift Registry" should be more useful with the way you are using your form. In this widget when an item or product reaches to the quantity 0 it simply becomes unavailable to be chosen anymore. This should prevent any kind of confusion for the users who try to submit your form.

     

    Inventory Widget not changing accurately Image 1 Screenshot 20

     

    As you can from the screenshot above you can determine the values of the items. You can choose 0 as a value here too.

     

    Please contact us if you need any further assistance.

     

     

  • Grahammilton1985
    Replied on October 6, 2016 at 6:08 AM

    Thanks for that

     

    Its looks nice and clean but I cant work out how to integrate it with a calculation field and payment like I can with the 'Inventory' widget - is there a way to do this?

     

    Many thanks

     

    Graham

  • seth
    Replied on October 6, 2016 at 9:37 AM

    Hello, I want to offer another solution. You can make your widget disappear by simple css code. For instance; if paste this code to your forms Inject Css tool:

    #id_187 {

    display:none;

    }

    This way you hide the widget in a scenario that you do not want. However the ID on every widget is different. You need to inspect the HTML code. Your first line's ID is 187, which encapsulates widget 1. Here is how you inspect your element ID's:

    Inventory Widget not changing accurately Image 1 Screenshot 20

    You can use these ID's and specified code to hide your elements on the form.

    I hope this helps. If this is not useful for you please write here again and we will work on other approaches.