AX - Bar Code
Overview
AX - Bar Code is an Experience Cloud component that generates scannable codes, including QR codes, standard barcodes, and other formats, on Experience Sites pages based on Salesforce field values.
Use it to display codes for product numbers, order IDs, tracking information, event tickets, or any data that portal users need to scan with mobile devices. Configure the barcode type, size, and styling in Experience Builder to match your portal's branding.
Perfect for customer portals showing order barcodes, event registration pages with ticket QR codes, partner portals with product tracking, or self-service sites where users need scannable access codes.
Configuration
Choosing the barcode type
AX - Bar Code renders 103 different types of barcodes. Select the one you need in the Type property. The picklist lists each type by its technical name, such as qrcode or code128, so the list below gives that name next to each common type.

Properties
Type selects the barcode symbology to generate. Choose the appropriate type based on your use case or industry standard.
Value is the data to be encoded into the barcode. Enter static text, or a token that reads the record selected in another AX component on the page, such as {{accountTable.selectedRecord.AccountNumber}}. The code then updates when the user picks another record. See Reactive Components.
Checksum enables or disables the calculation of a checksum digit, adding a layer of data integrity when the barcode type supports it. When it is on, the check character is also printed in the readable value. Off by default.
Width and Height set the maximum size of the barcode, in any CSS unit (a plain number means pixels). Width defaults to 100% of the container, and the height follows the width unless you set it.
Hide Value (off by default) removes the readable value printed with the code, for a cleaner visual presentation.
Alternative Text provides accessible text describing the barcode.
Styling
Background Color
Set the background color of the barcode component.
Choose a color that ensures good contrast with the barcode lines and numbers, ensuring readability and scannability.
Color
Set the color of the bars (or modules, for 2D codes). The readable value uses Text Color.
Select a color that stands out against the background, optimizing visibility.
Text Alignment
Position the readable value around the barcode. Twelve options pair a vertical band (Top, Center, Bottom) with a horizontal one (Left, Center, Right, Justify), from Top Left to Bottom Justify. Defaults to Bottom Center.
Adjust the text alignment to harmonize with the overall design and layout of the webpage or printed material.
Text Color
Set the color of the readable value, wherever Text Alignment places it.
Choose a color that is easily readable against the background color, ensuring that the encoded value is visually accessible.

Last updated
Was this helpful?

