# Updating Text Field text prop When Row Selected

**URL:** <https://forum.inductiveautomation.com/t/updating-text-field-text-prop-when-row-selected/83896>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 7, 2024, 3:36am UTC](https://forum.inductiveautomation.com/t/updating-text-field-text-prop-when-row-selected/83896 "2024-01-07T03:36:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [January 7, 2024, 3:36am UTC](https://forum.inductiveautomation.com/t/updating-text-field-text-prop-when-row-selected/83896/1 "2024-01-07T03:36:22Z")

</div>

```auto
try({../Table.props.selection.data}["Name"], "")

```

I have this code bound to a text prop on a text field component. I'm wondering why it does not work. I want the text field to show the correct value from the row selected in a table.

---

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [January 7, 2024, 3:44am UTC](https://forum.inductiveautomation.com/t/updating-text-field-text-prop-when-row-selected/83896/2 "2024-01-07T03:44:05Z")

</div>

```auto
try({../Table.props.selection.data[0].Name}, "")

```

I was indexing it wrong
