Showing text box when field equals specific value

Hello friend, I looked at your code and it could use some refactoring (reorganization an rewriting codes to be more readable and short).

Unfortunattely, I couldn’t understand the problem you are facing, if you could explain it better, I would appreciate.