How do I hide a field until a condition is satisfied?