Set the text field to type text rather than undefined