How do you output text?

I understand the basic input text command… I just need to know the coding for a button to output/export it into another field…

Thank you