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
- The Build Your Own Branding (BYOB) package must be installed and active in your org.
- 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.
- 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.
- When entering the Date field, use just the field name (e.g.,
CloseDate) — do not prefix it with the object name.
The component's configuration panel, where you set the target Date field and condition.
Available Date Conditions
| Condition | Matches records dated... |
YESTERDAY | Exactly one day before today |
TODAY | Exactly today |
TOMORROW | Exactly one day after today |
LAST_N_DAYS:n | Within the last N days, including today |
NEXT_N_DAYS:n | Within the next N days, including today |
LAST_WEEK | The previous full week (Sunday–Saturday) |
THIS_WEEK | The current full week (Sunday–Saturday) |
NEXT_WEEK | The 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.
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.
A record with the date-based highlight applied on the record page.
Use Cases
- Critical data alerts: Highlight high-value opportunities closing soon, or leads with scores dropping into a risk range.
- Renewal and follow-up reminders: Flag contracts renewing in the next 30 days, or contacts not reached in over a week.
- 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
- 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.
- Date matching looks off: Remember that
LAST_WEEKandTHIS_WEEKfollow a Sunday-to-Saturday schedule, not a rolling 7-day window. - 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