Updates a variable type to reflect it being a text field