# Textbox requestFocus

**URL:** <https://forum.inductiveautomation.com/t/textbox-requestfocus/7330>\
**Category:** Ignition\
**Created:** [September 26, 2013, 3:15pm UTC](https://forum.inductiveautomation.com/t/textbox-requestfocus/7330 "2013-09-26T15:15:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaepark](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@jaepark](https://forum.inductiveautomation.com/u/jaepark)\
**Post date:** [September 26, 2013, 3:15pm UTC](https://forum.inductiveautomation.com/t/textbox-requestfocus/7330/1 "2013-09-26T15:15:43Z")

</div>

Can someone help me understand the following? This is on 7.6.3

I have the a Table with header MyValue and 3 rows:

MyValue  
Val 1  
Val 2  
Val 3

I have a textbox underneath with the text property bound to:

```auto
if ({Root Container.Table.selectedRow}!=-1, {Root Container.Table.data}[{Root Container.Table.selectedRow},"MyValue"],"")
```

Selecting the different rows will display the cell value into the textbox.  
However if you give the textbox focus (clicking inside or by using requestFocus()) and then select a row from the table, the textbox is not updated.

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [September 26, 2013, 5:57pm UTC](https://forum.inductiveautomation.com/t/textbox-requestfocus/7330/2 "2013-09-26T17:57:48Z")

</div>

This is because when the text box has focus, it ignores updates from bindings. If it weren’t for this you’d never be able to write a value into the text box, it would keep getting overwritten every time there was an update. Now the focus staying in the text field is a little strange, but adding a script on the table’s mouseClicked event to request focus back in the table should work.`event.source.requestFocusInWindow()`

---

<div class="post-metadata">

**Author:** ![jaepark](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@jaepark](https://forum.inductiveautomation.com/u/jaepark)\
**Post date:** [September 26, 2013, 6:10pm UTC](https://forum.inductiveautomation.com/t/textbox-requestfocus/7330/3 "2013-09-26T18:10:28Z")

</div>

Makes sense. Thank you.
