# Perspective Barcode Scan context

**URL:** <https://forum.inductiveautomation.com/t/perspective-barcode-scan-context/51596>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 4, 2021, 10:07pm UTC](https://forum.inductiveautomation.com/t/perspective-barcode-scan-context/51596 "2021-10-04T22:07:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![stevenson](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@stevenson](https://forum.inductiveautomation.com/u/stevenson)\
**Post date:** [June 24, 2022, 8:07pm UTC](https://forum.inductiveautomation.com/t/perspective-barcode-scan-context/51596/5 "2022-06-24T20:07:29Z")

</div>

Here’s my button for a barcode scan:  
First script:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/4/f449dc20730718baf252e5b3ef04c09ca02608e3.png)  
Scan barcode:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/9/3931891ff608258b8995afdeb52231505fccceff.png)

Session Handler:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/3/f37303a15a00ad1d8359f66ebbd10476b1fe6a14.png)

“Barcode1” can be replaced with any unique identifier to handle multiple scan events and fields.  
From there the text field showing the scan value can just be bound to `session.custom.Barcode.Scanned[<identifier>]`

Hope this helps!

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-barcode-scan-context/51596)._
