Here’s my button for a barcode scan:
First script:
Scan barcode:
![image](https://global.discourse-cdn.com/business4/uploads/inductiveautomation/original/3X/3/9/3931891ff608258b8995afdeb52231505fccceff.png)
Session Handler:
“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!