Generate Barcode on Page
salesforce administrators can create barcodes directly on lightning pages for showing data on salesforce this component dynamically generates and displays barcodes or qr codes based on specified salesforce field values or static text it can be added to any lightning page, making it ideal for various use cases where visual representation of data as a barcode is beneficial use cases include displaying qr codes on contact or account detail pages for quick mobile scanning generating product barcodes on product detail pages creating scannable event tickets or name badges encoding record ids for easy record access via scan & search key features supports both 1d (barcode) and 2d (qr code) symbologies can encode field values from salesforce records allows for static text encoding customizable size and appearance supports over 100 different code types setup and configuration 1\ add the component to a page enter the lightning app builder for your desired page scroll to the bottom of the components panel locate "barcode (1d) and mosaic (2d) code generator" drag the component onto your page layout 2\ configure the component set the following attributes in the component properties object + field api name enter a valid field api name to use its value for encoding supports dot notation for related objects (e g , contact account owner profile name ) leave empty to use the record id (ensure text value is also empty) text value enter a static value to encode if populated, this overrides the object + field api name setting code type select the desired barcode symbology note for compatibility with scan component, use code128, code39, code93, datamatrix, ean13, ean8, itf, pdf417, qr, upce scale adjust to control the relative size of the displayed barcode caption position choose to display a caption at the top, bottom , or off generate a barcode on a page on salesforce, go to setup > lightning app builder choice an existing lighthing page or create a new one on the lighting app builder editor search for the barcode (1d) and mosaic (2d) code generator component and drag it onto your page configure the component attributes object + field api name specify the field to encode text value enter a static value (if desired) code type choose the barcode symbology scale set the relative size of the barcode click the save button to finish best practices ensure the chosen code type supports the characters in your data test the generated barcodes with your scanning devices to confirm readability use appropriate field level security to control who can see the generated barcodes consider using the set component visibility feature to dynamically show/hide the barcode based on user permissions or record data limitations some symbologies may not support all characters; choose a compatible format for your data the component is designed for display purposes and does not include built in printing functionality performance may be impacted if generating large or complex codes on pages with many components