How can I show/hide a text box using a condition?