# Force Typing into Editable Text Box? When Widget Created?

**URL:** <https://forums.unrealengine.com/t/force-typing-into-editable-text-box-when-widget-created/400378>\
**Category:** UI\
**Tags:** editable, cursor, text, unreal-engine, question\
**Created:** [July 19, 2017, 6:50pm UTC](https://forums.unrealengine.com/t/force-typing-into-editable-text-box-when-widget-created/400378 "2017-07-19T18:50:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0746fae6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0746fae6](https://forums.unrealengine.com/u/anonymous_user_0746fae6)\
**Post date:** [July 19, 2017, 6:50pm UTC](https://forums.unrealengine.com/t/force-typing-into-editable-text-box-when-widget-created/400378/1 "2017-07-19T18:50:26Z")

</div>

When a widget is set visible or created, how can I have the editable text box being edited? Like automatically the cursor “clicks on the editable text box” so that the user can type in it?  
Without forcing the mouse button to go to the editable text box location and click?

---

<div class="post-metadata">

**Author:** ![vivalabugz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vivalabugz](https://forums.unrealengine.com/u/vivalabugz)\
**Post date:** [July 20, 2017, 12:40am UTC](https://forums.unrealengine.com/t/force-typing-into-editable-text-box-when-widget-created/400378/2 "2017-07-20T00:40:25Z")

</div>

When creating your widget, access the editable text box and connect that to “in widget to focus”

 ![202735-edittextbox.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/6/9764f0293718ff12cc09e97429c30539c11b8bfa.png)

---

<div class="post-metadata">

**Author:** ![vivalabugz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vivalabugz](https://forums.unrealengine.com/u/vivalabugz)\
**Post date:** [July 20, 2017, 5:14pm UTC](https://forums.unrealengine.com/t/force-typing-into-editable-text-box-when-widget-created/400378/3 "2017-07-20T17:14:30Z")

</div>

Hey JJGG117, did this help?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0746fae6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0746fae6](https://forums.unrealengine.com/u/anonymous_user_0746fae6)\
**Post date:** [July 24, 2017, 1:22am UTC](https://forums.unrealengine.com/t/force-typing-into-editable-text-box-when-widget-created/400378/4 "2017-07-24T01:22:16Z")

</div>

Sort of, how can I get if player clicks anywhere besides the widget?

---

<div class="post-metadata">

**Author:** ![vivalabugz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vivalabugz](https://forums.unrealengine.com/u/vivalabugz)\
**Post date:** [July 24, 2017, 3:32pm UTC](https://forums.unrealengine.com/t/force-typing-into-editable-text-box-when-widget-created/400378/5 "2017-07-24T15:32:13Z")

</div>

I thought you don’t want the player to click?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_635a49ed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_635a49ed](https://forums.unrealengine.com/u/anonymous_user_635a49ed)\
**Post date:** [July 7, 2019, 4:08pm UTC](https://forums.unrealengine.com/t/force-typing-into-editable-text-box-when-widget-created/400378/6 "2019-07-07T16:08:42Z")

</div>

I know this is old but in case someone gets here from google: In your widget graph, pull in your “get editable text box” variable, drag out the pin, and choose “On Text Committed” event. From that, pull our the “Commit Method” pin and choose the “Switch on …” event. This will give you an exec switch on the enum value, and let you choose to act based on whether the user hit enter or the text box lost focus (hint: in the designer, set your editable text box to not lose focus on commit).

---

<div class="post-metadata">

**Author:** ![edmcreater](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edmcreater](https://forums.unrealengine.com/u/edmcreater)\
**Post date:** [October 30, 2024, 2:28pm UTC](https://forums.unrealengine.com/t/force-typing-into-editable-text-box-when-widget-created/400378/7 "2024-10-30T14:28:15Z")

</div>

![focus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/a/59a348608028cb98d27805ff72f083c9a3a3132f.png)
