Lightning Experience Setup

Example — Displaying a Barcode Using the Email Field in Lead

This example demonstrates how to display a barcode using the Email field from Lead records.
The same approach can be applied to any other field on any standard or custom object in Salesforce.

Barcode Lightning Walkthrough


Steps

1️⃣ Create a Barcode Config Record for the Lead Email Field

  1. Go to the Create Barcode Config tab available in the app.
  2. Click New to create a new configuration record.
  3. Enter a Unique Config Name present in the left hand side.
    • Use a name without spaces or special characters.
  4. Set the following values:
    • Object Name: Lead
    • Field Name: Email
  5. Barcode Type: Select the desired barcode type (e.g., Code128, QR Code, etc.).
  6. Leave other fields as default (unless customization is required).
  7. Expand the additional settings if needed and configure them.
  8. You can modify options like Download options, Image Rotations etc.
  9. On right hand side you can select the data from record or you can enter data manually.
  10. Click Save button present on bottom.

LeadEmail Field

  1. Go to the Barcode Config App to check the record page of to verify the details. Config Record Pic

2️⃣ Add the Barcode Component to the Lead Record Page

  1. Open any Lead record details page. Make sure you select the object you typed in the configuration record.
  2. Click the Gear Icon (⚙️) present on the top and select Edit Page.

Edit Page Pic 3. Lightning App Builder page will appear onto your screen , scroll down a bit , you can see the component in Custom-Managed Section.

  1. From the left sidebar , drag the “Barcode and QR Code Generator” component onto the page layout.
  2. In the component properties, enter the value for Config Name
  • Use the same name which you have entered in the record.
  • Enter the Barcode Config Name in the right side panel. Enter the exact name you used while creating the Barcode Config record. Drag Component Pic
  1. Click Save (top-right corner)
  2. Click Activate button and assign the page as: Save Page Pic.
    • Inside Org Default tab click on Assign as Org Default button. Activate Page Pic.
    • A popup will appear, click on Assign Form Factor button.
    • Select the Desktop and Phone option and click Next. Assign Page Pic
  • Finally, click on Save button. Save Assignment Pic
  1. You can now navigate back to the Account record page and see the barcode. Barcode Component Pic

Result

If the configuration is set correctly, a barcode will be displayed when you open any account record.


Note

You can repeat the same steps to:

  • Use a different field (e.g., Phone, Name, Custom Fields), or
  • Apply barcode generation to other objects such as Lead, Contact, or Custom Objects.
Phone

Office: +1 725 333 6699

Email

Office: admin@appcolab.com

Site: https://appcolab.com

Social
©2024 AppColab LLC · All rights reserved.