# Perspective Components for Text Field and Text Area don't have "OnChange" event. Is there a way to achieve it?

**URL:** <https://forum.inductiveautomation.com/t/perspective-components-for-text-field-and-text-area-dont-have-onchange-event-is-there-a-way-to-achieve-it/68059>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 29, 2022, 10:31am UTC](https://forum.inductiveautomation.com/t/perspective-components-for-text-field-and-text-area-dont-have-onchange-event-is-there-a-way-to-achieve-it/68059 "2022-12-29T10:31:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaskirat\_Kaur](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Jaskirat\_Kaur](https://forum.inductiveautomation.com/u/Jaskirat_Kaur)\
**Post date:** [December 29, 2022, 10:31am UTC](https://forum.inductiveautomation.com/t/perspective-components-for-text-field-and-text-area-dont-have-onchange-event-is-there-a-way-to-achieve-it/68059/1 "2022-12-29T10:31:35Z")

</div>

I am trying to update TextField2 when user enters text in TextField1. How to capture the change on TextField1?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 29, 2022, 11:25am UTC](https://forum.inductiveautomation.com/t/perspective-components-for-text-field-and-text-area-dont-have-onchange-event-is-there-a-way-to-achieve-it/68059/2 "2022-12-29T11:25:49Z")

</div>

**Method 1**  
On TextField1 set `props.deferUpdates : false`.  
On TextField2 create a property binding to `../TextField.props.text`.

**Method 2**  
On TextField1 set `props.deferUpdates : false`.  
Right-click on TextField1 and select Configure Events. Add an _onKeyPress_ event script.  
`self.getSibling("TextField_0").props.text = self.props.text`
