It's quite common to have a form with a checkbox stating "Use foo" immediately followed by a textbox where the user can input the "foo value" he want's to use. Of course, this textbox is useful only if "Use foo" is checked
I don't know the best way to deal with this situation :
- Disable the textbox (ie textboxfoo.Enabled=false;)
- Hide it (ie textboxfoo.Visible=false;)
- Let the user input a foo value if he wants to, and ignore the value he entered.
Is there a best practice that I can follow ?