In the custom record page for an object, can I show or hide tabs based on record type? For example, I want to show a tab "Incident Details" if record is an Incident and "Service Request Details" if record is a Service Request
If you have a small number of combinations of tabs, for each combination:
- Create a Formula Checkbox that is true only when you have this combination
- On the Record Lightning Page, create a Tabs Component and include tabs appropiate for this combination. Then add a Filter for this combination's Tabs under
Set Component Visabilityusing the Formula Checkbox from above.
I'm researching if there is a better way since my implementation has a large number of combinations:
Please vote for this idea (Lightning tabs - tab visibility filters) to add visibility filters for individual tabs in lightning tabs.
When I need to provide functionality for a specific subset of people it's not practical to provide a whole separate tab set for each possible combination of features. It'd be great to be able to toggle visibility of individual tabs.