How can I show/hide multiple fields based on a condition?