How to prevent fields from showing up again after being hidden conditionally?