How to Pass an Input Field to a Text Field?