How can I fix my conditional logic to clear fields when changing selection in the dropdown?