# Set TextField box Focus

**URL:** <https://forum.inductiveautomation.com/t/set-textfield-box-focus/10512>\
**Category:** Ignition\
**Created:** [September 24, 2015, 1:20pm UTC](https://forum.inductiveautomation.com/t/set-textfield-box-focus/10512 "2015-09-24T13:20:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lar\_Mag](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@Lar\_Mag](https://forum.inductiveautomation.com/u/Lar_Mag)\
**Post date:** [September 24, 2015, 1:20pm UTC](https://forum.inductiveautomation.com/t/set-textfield-box-focus/10512/1 "2015-09-24T13:20:48Z")

</div>

Does anyone know how to make the focus change to a TextField Box.

I am trying to create a Pop-up that has a TextField Box. Once the Pop-up appears I want the focus to be placed on the TextField box automatically.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [September 24, 2015, 2:05pm UTC](https://forum.inductiveautomation.com/t/set-textfield-box-focus/10512/2 "2015-09-24T14:05:16Z")

</div>

In the visionWindowOpen event try calling the requestFocusInWindow method on the text field. But call it with the system.util.invokLater function. Like this:

`system.util.invokeLater(system.gui.getParentWindow(event).getComponentForPath('Root Container.Text Field').requestFocusInWindow)`Best,
