When a product quantity is changed to 1, the product is automatically selected. When the quantity is changed back to 0, the selection is not cleared

  • bdoodle
    Asked on August 12, 2015 at 3:55 PM

    When a product's selection box is not selected and you enter a quantity for it, the selection box is automatically selected by Jotform.  Could you do the converse as well?  i.e. When the selection box is checked and someone zeros out the quantity for it, couldn't you automatically unselect the selection box?   If you don't do this, my customer will get an error when he submits to PayPal.  This change would be VERY helpful and given the existing code you must have to set the box, perhaps it wouldn't be hard to do the opposite.  

    Starting the qty at 1 and not allowing 0 is not a friendly thing to do to my customers.

  • David JotForm Support
    Replied on August 12, 2015 at 4:05 PM

    Hi,

    I will forward this to our developers.

    When a product quantity is changed from 0 to something greater than 0, the product is automatically selected:

    When a product quantity is changed to 1, the product is automatically selected Screenshot 50

    Quantity changed, product is automatically selected:

    When a product quantity is changed to 1, the product is automatically selected Screenshot 61

    However, if the quantity is changed to 0, the product remains selected:

    When a product quantity is changed to 1, the product is automatically selected Screenshot 72

    This causes an error due to the product being selected but not having a quantity attached:

    When a product quantity is changed to 1, the product is automatically selected Screenshot 83

    If the selection was automatically cleared when the value was changed to 0.  There would no longer be any problems.

    Here is my clone of the users form to test with:

    http://support.jotform.com/form/52235974878976

  • bdoodle
    Replied on August 12, 2015 at 4:10 PM

    You are the best!!!! Thanks a million!

  • David JotForm Support
    Replied on August 12, 2015 at 5:27 PM

    Thank you for the kind words.  We will update you here as soon as we have any further information.

  • NeilVicente
    Replied on August 15, 2015 at 5:01 AM

    @bdoodle

    The redirection problem was fixed yesterday. Today, we fixed the issue with the item not being unchecked when quantity selected is zero.

    Have an awesome weekend. Cheers!

  • bdoodle
    Replied on August 15, 2015 at 1:11 PM

    Thank you so much!  It works great!