# Event Script that triggers when a label or text box updates (Perspective)

**URL:** <https://forum.inductiveautomation.com/t/event-script-that-triggers-when-a-label-or-text-box-updates-perspective/28677>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 30, 2019, 7:06pm UTC](https://forum.inductiveautomation.com/t/event-script-that-triggers-when-a-label-or-text-box-updates-perspective/28677 "2019-09-30T19:06:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brendan.curran](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@brendan.curran](https://forum.inductiveautomation.com/u/brendan.curran)\
**Post date:** [September 30, 2019, 7:06pm UTC](https://forum.inductiveautomation.com/t/event-script-that-triggers-when-a-label-or-text-box-updates-perspective/28677/1 "2019-09-30T19:06:47Z")

</div>

I’m trying to create a mobile client that scans a label and then displays information about that label. It’s all working, but I’m trying to get it to refresh automatically whenever the barcode changes. I have the barcode update to a session prop and that prop in bound to a label. I can’t seem to get any events to trigger when the text in that label updates. I have the script bound to all 3 textComposition events at the moment. Currently it refreshes from a refresh button, but I’d like to get rid of that.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [September 30, 2019, 7:24pm UTC](https://forum.inductiveautomation.com/t/event-script-that-triggers-when-a-label-or-text-box-updates-perspective/28677/2 "2019-09-30T19:24:50Z")

</div>

Right click the `Label.props.text` property and select “Add Change Script”.

---

<div class="post-metadata">

**Author:** ![brendan.curran](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@brendan.curran](https://forum.inductiveautomation.com/u/brendan.curran)\
**Post date:** [September 30, 2019, 7:26pm UTC](https://forum.inductiveautomation.com/t/event-script-that-triggers-when-a-label-or-text-box-updates-perspective/28677/3 "2019-09-30T19:26:01Z")

</div>

Thanks that’s exactly what I needed.
