Barcode
Last updated
Last updated
The Barcode component displays a scannable barcode, which can be used to encode various types of data such as product information or identification numbers.
It supports several barcode types and provides a straightforward way to integrate barcode functionality into your app.
In the form view of a table synced from Google Sheets or Microsoft Excel, select the field type as Barcode.
For an Alloy table, from the table view in the Data tab, set the column type to Barcode to utilize this component.
Choose the type of barcode to be used:
QR Code: A 2D barcode that can store various types of data, including URLs, text, and contact information.
Code 39 A linear barcode that supports alphanumeric characters and a limited set of symbols. Often used in industrial and logistics applications.
Example: A warehouse might use Code 39 to encode a product identifier like A1234B5678
.
Code 128: A high-density linear barcode that supports alphanumeric characters and special characters. Used in applications requiring high data capacity.
Example: A shipping label might use Code 128 to encode a shipping number such as 123456789012
.
Code 93: An enhanced version of Code 39 that offers higher density and includes additional characters. Used for compact data encoding.
Example: A Code 93 to encode a book's ISBN number like 978-3-16-148410-0
.
EAN-93: A variant of EAN-13, used for encoding 13-digit barcodes with additional features. Commonly used in retail.
Example: A retail product might have an EAN-93 barcode like 1234567890123
.
EAN-8: A shorter version of EAN-13 used for small packages and products. Encodes 8 digits.
Example: A small product, such as a cosmetics item, might use EAN-8 like 12345678
.
JAN: Japanese Article Numbering, similar to EAN but used in Japan. Encodes 8 or 13 digits.
Example: A Japanese product might use JAN to encode 4901234567890
.
UPC-E: A compact version of UPC-A, used for small items where space is limited. Encodes 6 digits.
Example: A small grocery item might use UPC-E like 012345
.
UPC-A: The standard barcode used in North American retail. Encodes 12 digits and is used for product identification.
Example: A common product might use UPC-A like 012345678912
.
Code 11: A linear barcode used mainly in telecommunications for encoding numeric data. Supports digits and some special characters.
Example: A Code 11 to encode a service code like 1234567890
.
Set a clear and informative title for the barcode field. Examples include "Product Barcode" or "Inventory Code" to help users identify the purpose of the barcode.
Manage the component’s visibility settings:
Yes to hide the component.
No to show the component.
Or use PowerFX to configure a custom visibility rule based on specific conditions.