How to create conditions to hide/show multiple fields?