How to clear values on conditionally hidden fields