Skip to main content

Barcode scan Action step

Read a barcode or QR code in a Yeeflow form action and save the current result to a variable.

Use a Barcode scan step in a form action to read a barcode or QR code with a supported device camera or scanner. Save the decoded value to a variable for later steps, such as finding an item by its asset number.


Use Cases

  • Inbound Receiving: Scan barcodes on product packages to match purchase order items and complete warehouse receiving.

  • Inventory Counting: Quickly identify items during stock-taking to avoid manual entry errors.

  • Outbound Delivery: Verify barcodes before shipment to ensure accuracy and avoid misdelivery.


In the form designer, open Actions and select or create the action that the scan button will run. Choose Add a step → Barcode scan, then bind the action to the button.

The Add a step menu with Barcode scan highlighted.

Settings Overview

Barcode scan configuration showing Auto recognition, scanning mode, a result variable, Stop action and the error message field.

  • Execution Condition
    Set the condition under which the scan runs. Turn on Continue next step when condition is not met to skip the scan step and continue the action when its condition is false.

  • Barcode type
    Choose Auto to recognize the code type, or select the type used by your labels. Test on the device and client that will run the action.
    Supported formats include: code-128, code-39, code-93, codabar, gs1-data-bar, gs1-data-bar-limited, gs1-data-bar-expanded, ean-13, ean-8, itf, upc-e, qr, pdf-417, aztec, data-matrix.

  • Scanning mode

    • Automatically scan: Automatically detects and reads the first barcode found.

    • Select to scan: When multiple barcodes are detected, the user must manually select one barcode to save as the result.

    • Scan multiple: Allows scanning multiple barcodes at once, with results saved as an array.

  • Execute result

    • Save the scanned value to a variable: Use a text variable for a single identifier so letters and leading zeros remain intact. For Scan multiple, select a variable compatible with the array result and verify it using multiple test labels.

    • On read error: Choose whether a read failure stops this action or continues to the next step. When continuing, add a condition so dependent steps run only after a valid value from the current scan.

    • Error message: Display a custom error message when scanning fails to guide the user.


Tips

  • When using a fixed barcode type, select it and verify it on the target device with camera access or the scanner connected.

  • For scenarios requiring manual confirmation, use Select to scan mode to avoid misreads.

  • Use Scan multiple for inventory or receiving batches. Check the returned values and handle duplicate labels before using them in later steps.

Before each scan, clear the previous result. Test a successful scan, a read failure, and a cancelled scan. Check that a dependent lookup runs only when the current scan returns a valid value. Compare that value with the source label.

Did this answer your question?