# Barcode Scanner Input Component

**URL:** <https://forum.inductiveautomation.com/t/barcode-scanner-input-component/24615>\
**Category:** Ignition\
**Created:** [May 2, 2019, 8:34pm UTC](https://forum.inductiveautomation.com/t/barcode-scanner-input-component/24615 "2019-05-02T20:34:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [May 2, 2019, 9:13pm UTC](https://forum.inductiveautomation.com/t/barcode-scanner-input-component/24615/3 "2019-05-02T21:13:13Z")

</div>

I played around with the barcode component yesterday.

I created a button that triggered the scan barcode event, Then in session events added this script under Barcode scanned.

```auto
system.tag.writeAsync(['[default]New Tag'], [data.text])

```

New tag was the name of the memory tag I created just for testing. The button opened the device camera and as soon as it detects a barcode it closes the camera and puts the barcode results into the tag.

---

_[View the full topic](https://forum.inductiveautomation.com/t/barcode-scanner-input-component/24615)._
