User inputed name in comments

Hello

what I would like to do is have a window that has a comment panel, and text label and a text input box
from the text fox I would like the user to be able to input a name.

window is named “window”
text label has default name
text box is named “name”
comment panel is “comments”

How do I reference the text box in scripting?
the text box is named “name”
I have tried
source.parent.windowname.getComponet(“name”)

thanks

also I have tried to use mouse movements to trigger the naming to go off