How to show or hide multiple fields depending on user input?