Cert++
Close

Lightning page component visibility rules by user or record criteria

Key Takeaway

Visibility rules change what each user sees on a Lightning page, but they don't replace field-level security.

Visibility rules let you show or hide a component, a field, or a tab on a Lightning page based on conditions. Conditions can include the record's field values, the viewing user, the user's permissions, or the device. You set the rules with clicks in the Lightning App Builder, and they tailor what each user sees.

How visibility rules work

A visibility rule uses filters, which are its conditions, and filter logic, which decides how several filters combine. With no filter, a component displays on the page as usual. After you define filters and filter logic, the component stays hidden until the filter logic criteria are met.

Visibility properties are available for these items:

  • Components on record, app, and Home pages
  • Fields on a Dynamic Forms-enabled record page
  • Individual tabs in the Tabs component

The rules work the same for standard and custom components. Custom components need no changes.

Visibility rules are one way to tailor a page. Another way is to create separate custom record pages and assign them by app, record type, and user profile.

Salesforce Accredited Agentforce Health Professional Study Guide

Checklist progress

0/167Learned

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Salesforce Accredited Agentforce Health Professional studiers.