The text box should be disabled.
If the text field is hidden, a visible change in the shape will make the program less user friendly. An example of this is the old (very unpopular) disappearing menu items that used to be in Microsoft Office. People do not want them to move on screens. This is disorienting.
If the user is allowed to enter a useless value, then this gives a false impression that entering the value has some effect.
source
share