Barcode
The Avonni Barcode component lets you easily create and customize barcodes within your Salesforce
Overview
The Avonni Barcode renders a barcode image directly on a Flow screen from any value you provide. Use it to display product codes, shipping labels, ticket IDs, or any data that needs to be scannable by a reader.

Tutorials
Learn to create and display product code barcodes in Salesforce efficiently and effectively.

Configuration
To configure it, click the component on the Flow screen. The Edit Barcode Component panel opens on the right with two tabs: Properties and Style. The sections below mirror the Properties tab.
Properties
Value (Required) — the data to encode in the barcode. You can type a value directly, or switch to the mapped input and select a flow variable or record field.

Type (Required) — the barcode format to render. The component supports more than 150 types. The most commonly used formats are listed below:
Background Color — sets the color behind the barcode.
Color — sets the color of the barcode bars. Default: black (#000000).
Text Color — sets the color of the human-readable value shown with the barcode. Default: black (#000000).
Text Alignment — sets the position of the displayed value relative to the barcode. Options: Top Right, Top Left, Top Center, Top Justify, Center Right, Center Left, Center Center, Center Justify, Bottom Right, Bottom Left, Bottom Center (default), Bottom Justify.
Hide Value — when enabled, the human-readable text that normally appears below the barcode is hidden. The barcode image remains visible.
Height — sets the maximum height of the barcode. Any CSS length unit is accepted; unitless values are treated as pixels. By default, the height depends on the width.
Width — sets the maximum width of the barcode. Any CSS length unit is accepted; unitless values are treated as pixels. Default: 100%.
Checksum — when enabled, the checksum digit is shown in the displayed value below the barcode.
Alternative Text — accessible text description of the barcode for screen readers.
Styling
The Style tab gives you control over the barcode's spacing, border, and dimensions. Configure it from the Style tab of the barcode's property editor.
Controls the outer spacing around the barcode, creating space between it and other elements on the screen.
Top / Right / Bottom / Left: Adjust the space on each side of the barcode.
Controls the inner spacing between the barcode and its border.
Top / Right / Bottom / Left: Adjust the inner spacing on each side.
Customizes the border surrounding the barcode.
Color: Set the border color.
Size: Adjust the border thickness.
Style: Choose a border style (e.g. solid, dashed, dotted).
Radius: Control the roundness of the corners.
Controls the barcode's dimensions.
Width / Height: Set fixed dimensions for the barcode.
Min Width / Max Width / Min Height / Max Height: Constrain the size within bounds.
Overflow: Control how content that exceeds the bounds is handled.
Last updated
Was this helpful?
