How to pass the value from form fields to text into the "Text" field?