How to add a condition to set a minimum quantity on a text field?