How can I handle a text element like text box field?