Here’s my button for a barcode scan:
First script:
Scan barcode:
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!