if no 'type' attribute exists, test field as 'text'