# Auto advance input field focus after barcode scan

**URL:** <https://forum.inductiveautomation.com/t/auto-advance-input-field-focus-after-barcode-scan/9004>\
**Category:** Ignition\
**Created:** [September 4, 2014, 7:10pm UTC](https://forum.inductiveautomation.com/t/auto-advance-input-field-focus-after-barcode-scan/9004 "2014-09-04T19:10:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [September 4, 2014, 8:27pm UTC](https://forum.inductiveautomation.com/t/auto-advance-input-field-focus-after-barcode-scan/9004/4 "2014-09-04T20:27:02Z")

</div>

Try something like this:

[propertyChange event](https://www.inductiveautomation.com/support/usermanuals/ignition/event_types.htm)

```auto
if event.propertyName == "text":
	if chr(13) in event.newValue or chr(10) in event.newValue:
		event.source.parent.getComponent("txt2").requestFocusInWindow()
	
```

NOTE TO SELF [size=50](and you since you are reading this)[/size]: PASTING text into a text field does NOT fire the propertyChange event.

---

_[View the full topic](https://forum.inductiveautomation.com/t/auto-advance-input-field-focus-after-barcode-scan/9004)._
