> For the complete documentation index, see [llms.txt](https://help.smallbuilder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.smallbuilder.com/smallbuilder-line-items/builder/inserting-custom-labels-into-editor-labels.md).

# Inserting Custom Labels into Editor Labels

Custom labels can be applied to labels displayed in the editor wherever the <img src="/files/umcyEE5DL6ZO4iOFrI3R" alt="" data-size="line"> icon appears. Clicking this icon opens a modal window where you can select and apply the desired custom label.

{% hint style="warning" %}
When applying a custom label, ensure the target value does not exceed the maximum allowed length. If the maximum length is exceeded, the binding to the custom label might be truncated and not applied correctly.

Always consider the length limitation when setting up custom labels.
{% endhint %}

### Example: Changing the Label of the Lookup Selector Button in the Editor

{% hint style="info" %}
This example demonstrates the configuration of a Line Item Editor for Opportunity Products:

* **Parent:** Opportunity
* **Line Item:** OpportunityLineItem
* **Lookup:** PricebookEntry
  {% endhint %}

When the lookup object is set to Pricebook Entries, the name of the lookup selector button displayed in the editor automatically inherits the object name. However, such button names may appear awkward to users. Changing the object label in Salesforce settings is inefficient because the object is used in multiple contexts, potentially impacting other screens.

#### Steps to Configure:

1. Navigate to the **Labels** menu in the side panel.
2. Click the <img src="/files/umcyEE5DL6ZO4iOFrI3R" alt="" data-size="line"> **icon** next to the **lookup button label** input field.
3. Select the preconfigured custom label “Add Products (`SmallBuilder_AddProducts`)” from the modal window.
4. Confirm that the selected custom label is applied to the input field.
5. Run the editor and verify that the lookup selector button label displayed in the editor reflects the updated custom label.

<figure><img src="/files/SNPCd0NVQl1iHX9vltBH" alt=""><figcaption></figcaption></figure>

#### Result

The custom label will be translated and displayed in the editor based on the user’s language settings.

<figure><img src="/files/6savOlnEpnN1Y8mn7nL8" alt=""><figcaption></figcaption></figure>

Example of Custom Label **Translations** for “**Add Products** (`SmallBuilder_AddProducts`)”:

<table><thead><tr><th width="126">Language</th><th>Translation</th></tr></thead><tbody><tr><td><strong>English</strong></td><td>Add Products</td></tr><tr><td><strong>Korean</strong></td><td>제품 추가</td></tr></tbody></table>

When the user’s language is set to Korean, the button label displayed in the editor shows as “**제품 추가**”.

<figure><img src="/files/Pk091ZI5gUQHFv04eEsx" alt=""><figcaption></figcaption></figure>

When the user’s language is set to English, the button label displayed in the editor shows as “**Add Products**”.

<figure><img src="/files/mDk7Yqt25vJBgMJ2yJC8" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.smallbuilder.com/smallbuilder-line-items/builder/inserting-custom-labels-into-editor-labels.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
