BYOB - Field Label Overrider (GA)

Published on February 9, 2026 BYOB


Field Label Overrider: Show the Right ID Label for Every Country

Field Label Overrider lets one field on your Contact or Account or any sobject record display a different label depending on the customer's country — for example, showing "SSN / EIN" for a U.S. contact and "VAT Number" for a contact in Europe — without creating a separate field for each country.


If Billing Country is...The Field Label Becomes...
USASSN / EIN
BrazilCPF / CNPJ
IndiaPAN / GSTIN
UK / EuropeVAT Number
AustraliaABN (Australian Business Number)


Behind the scenes, your data stays in one field — National_ID__c — so reporting stays simple and your record pages stay uncluttered. Only the label changes, based on the contact's Mailing Country.


Before You Begin

  1. You'll need System Administrator access, or edit access to Setup, Object Manager, and Lightning App Builder.
  2. The Build Your Own Branding (BYOB) package must be installed in your org.
  3. Have the field you want to override ready (this guide uses National_ID__c on Contact as the example).


Step 1: Confirm BYOB Is Installed and Active

Go to Setup → Installed Packages and confirm Build Your Own Branding shows a status of Active.

Installed Packages page showing the BYOB package with Active status

The BYOB package listed as Active in Installed Packages.


Step 2: Turn On BYOB Components

Go to Setup → Custom Settings, find Byob Elements, and click Manage.

Custom Settings page with the Byob Elements setting highlighted

The Byob Elements custom setting in Custom Settings.

Create one new, org-wide value with these two fields set exactly as shown, then save:

  1. PSC_normalViewElement: windowViewMode-normal
  2. PSC_consoleViewElement: windowViewMode-maximized

Custom Settings form with PSC_normalViewElement and PSC_consoleViewElement values entered

Both required values entered and ready to save.

Once saved, Field Label Overrider is ready to use on any record page.


Step 3: Find Your Object and Field Names

In Object Manager, open the object you're customizing (e.g., Contact) and note its API name.

Object Manager listing Salesforce objects

The Object Manager, used to look up object API names.

Contact object detail page showing its API Name

The Contact object's API Name, shown at the top of its detail page.

Then, under Fields & Relationships, find your target field and note its field API name (e.g., National_ID__c).

Fields and Relationships list showing the National_ID__c field API name

The field API name, found under Fields & Relationships.


Step 4: Add the Component to Your Record Page

On the record page, click the gear icon → Edit Page to open Lightning App Builder.

Gear icon menu with Edit Page selected

Opening Lightning App Builder from the record page.

Find Field Label Overrider in the Custom Managed Components panel and drag it onto the page. Place it as the last component on the page.

Field Label Overrider component listed among Custom Managed Components

The Field Label Overrider component in the components panel.

Field Label Overrider component placed on the record page

The component placed as the last item on the page.


Step 5: Set the Field and Its New Label

In the component's properties, enter:

  1. Field API Name: the object and field together (e.g., Contact.National_ID__c)
  2. Override Field Label: the label to display (e.g., "SSN / EIN")

Field Label Overrider property panel with Field API Name and Override Field Label filled in

Field API Name and Override Field Label set for the USA scenario.


Step 6: Set When the Label Applies

Expand Set Component Visibility (a native Salesforce feature) and add a filter so this label only applies under the right condition — for example, Mailing Country equals USA. Text-based filter values are case-sensitive, so match the value exactly as it's stored on the record.

Component visibility filter set to Mailing Country equals USA

A visibility filter restricting the override to USA contacts.


Step 7: Repeat for Each Country

Add another Field Label Overrider component for each additional country — for example, a second component with label "CPF / CNPJ" and a filter for Mailing Country equals Brazil.

Multiple Field Label Overrider components stacked for different countries

Multiple overrides configured for different countries on the same page.


Step 8: Test It

Save your changes, then open a few test records to confirm the label updates correctly:

USA: the label reads "SSN / EIN."

Contact record with Mailing Country USA showing the SSN / EIN label

A USA contact record showing the SSN / EIN label.

Brazil: the same field now reads "CPF / CNPJ" — the underlying data hasn't changed, only the label.

Contact record with Mailing Country Brazil showing the CPF / CNPJ label

A Brazil contact record showing the CPF / CNPJ label.

Any other country: the field falls back to its original label, "National ID."

Contact record with no matching country showing the original National ID label

The default fallback label shown when no country condition matches.


Troubleshooting

  1. Label isn't changing: double-check that your filter value exactly matches the stored value's capitalization — text filters are case-sensitive.
  2. Component doesn't appear in the builder: confirm the BYOB package status is Active and that the Byob Elements custom setting was saved with both values.
  3. Wrong label showing: check for overlapping visibility filters between components — only one should match a given record at a time.



Knowledge Article Number: KA-00078

View more articles in the knowledge base