->logic() grays out or blanks a field based on another field own value - try editing quantityInStock.