BYOB - Field Highlighter By Date (GA)

Published on February 9, 2026 BYOB


Field Highlighter By Date

Field Highlighter By Date automatically flags records based on how a date field compares to today — for example, highlighting opportunities closing this week, or leads not contacted in the last 7 days — without writing a report or formula. The component checks the date on each record and applies highlighting whenever it falls within the range you define.


Before You Begin

  1. The Build Your Own Branding (BYOB) package must be installed and active in your org.
  2. The field you want to highlight on must be a Date field — DateTime fields aren't supported, since they carry a time component that doesn't map cleanly to day-based ranges.
  3. That field must already be present on the record layout you're configuring — if it isn't on the layout, the component can't read its value.
  4. When entering the Date field, use just the field name (e.g., CloseDate) — do not prefix it with the object name.


Field Highlighter By Date component configuration panel

The component's configuration panel, where you set the target Date field and condition.


Available Date Conditions

ConditionMatches records dated...
YESTERDAYExactly one day before today
TODAYExactly today
TOMORROWExactly one day after today
LAST_N_DAYS:nWithin the last N days, including today
NEXT_N_DAYS:nWithin the next N days, including today
LAST_WEEKThe previous full week (Sunday–Saturday)
THIS_WEEKThe current full week (Sunday–Saturday)
NEXT_WEEKThe next full week (Sunday–Saturday)


For example, if today is March 12, 2025: LAST_N_DAYS:6 matches March 6–12, NEXT_N_DAYS:6 matches March 12–18, LAST_WEEK matches March 2–8, and NEXT_WEEK matches March 16–22.


Component visibility settings showing a date condition applied

A date condition applied in the component's visibility settings.


Worked Examples

Match: Today is March 12, 2025. A record's date is March 10, 2025. With LAST_N_DAYS:6, the record matches — March 10 falls within the last 6 days.

No match: Today is March 12, 2025. A record's date is March 5, 2025. With LAST_WEEK, the record does not match — last week was March 2–8, and March 5 falls outside that range even though it's in the past.

Edge case: Today is March 12, 2025. A record's date is March 17, 2025. With NEXT_WEEK, the record matches — next week runs March 16–22, and March 17 falls inside that range.


Record page showing a date field with highlighting applied

A record with the date-based highlight applied on the record page.


Use Cases

  1. Critical data alerts: Highlight high-value opportunities closing soon, or leads with scores dropping into a risk range.
  2. Renewal and follow-up reminders: Flag contracts renewing in the next 30 days, or contacts not reached in over a week.
  3. SLA and deadline tracking: Surface cases or tasks approaching a due date so they don't get missed in a busy queue.


The component is fully supported in Salesforce Console navigation, so highlights display consistently whether you're working in a standard record page or a Console tab.


Troubleshooting

  1. Highlight not visible: Confirm the record actually meets the condition you set in Component Visibility — double-check the date and the condition against the reference table above.
  2. Date matching looks off: Remember that LAST_WEEK and THIS_WEEK follow a Sunday-to-Saturday schedule, not a rolling 7-day window.
  3. Highlight missing entirely: Make sure the date field is present on the record layout — if it isn't, the component has no value to evaluate.



Knowledge Article Number: KA-00077

View more articles in the knowledge base