# Barcode

## Setting Up **Your Barcode**

### **Enter a Barcode Value**

Enter the data you want to encode in the barcode. This information will be scanned or read by a barcode reader.

* **What to Enter:** This could be a product code, serial number, tracking ID, URL, or any other relevant data.
* **Input Methods:**
  * **Manual Entry:** Type the data directly into the component's properties.
  * **Dynamic Value:** Use a formula or a variable to pull the data from a Salesforce field.

### Choose the Barcode Type

Select the appropriate barcode symbology (type) based on your specific needs and industry standards.

* **Supported Types:** The Barcode component supports a variety of common barcode types, including:
  * **UPC-A/E (Universal Product Code):** Primarily used in retail for product identification in North America.
  * **EAN-13/8 (International Article Number):** Used globally for retail product identification (similar to UPC).
  * **Code 128:** A versatile barcode that can encode letters, numbers, symbols, and control characters.
  * **Code 39:** An older barcode type that can encode uppercase letters, numbers, and a few special characters.
  * **QR Code:** A two-dimensional barcode capable of storing a large amount of data, such as website URLs, contact information, or plain text.
* **Choosing the Right Type:** Consider factors like the type of data you're encoding, the industry you're in, and the capabilities of the barcode scanners that will be used

### **Customize the Appearance**

Adjust the visual properties of the barcode to fit your design and ensure readability.

* **Color:**
  * **Barcode Color:** Sets the color of the barcode bars or squares (typically black).
  * **Background Color:** Sets the background color behind the barcode (typically white).
  * **Text Color:** Sets the color of the human-readable text displayed below the barcode (if enabled).
* **Size:**
  * **Height and Width:** Adjust the dimensions of the barcode image. Ensure the barcode is large enough to be scanned reliably.
* **Text:**
  * **Font Size:** Sets the size of the human-readable text displayed below the barcode (if enabled).
  * **Hide Text:** You can display the barcode by itself, hiding the human-readable text.
* **Spacing:**
  * **Margin:** Adds space around the entire barcode image.
  * **Padding:** Adds space between the barcode bars and the edge of the barcode image

## **Why Use the Barcode Component?**

* **Automate Data Capture:** Enable quick and accurate data capture using barcode scanners.
* **Improve Efficiency:** Streamline workflows that involve product tracking, inventory management, or data entry.
* **Reduce Errors:** Minimize manual data entry errors by using barcodes.
* **Enhance User Experience:** Provide a convenient way to access information or act by scanning barcodes.

## **Example Use Cases:**

* **Product Management:** Generate barcodes for products to track inventory and sales.
* **Event Ticketing:** Create barcodes for event tickets to manage attendance and check-in.
* **Asset Tracking:** Assign barcodes to assets to monitor their location and usage.
* **Document Management:** Use barcodes to access and retrieve documents quickly.

By incorporating the Barcode component into your Dynamic Components, you can enhance the functionality and efficiency of your Salesforce applications.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avonnicomponents.com/dynamic-components/components/barcode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
