function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lily BluntLily Blunt 

Conditionally Show / Hide an entire Lightning Component

Hello Board,  is it possible to conditionally show / hide a full lightning component?  

I have an object with 2 record types. A component is not relevant at all for one of the record types. While building the my lightning App, I must have the component on the page. Because it is relevant for the other record type.  So.. rather than showing "N/A" on the component, can I hide it conditionally?   ..so that user feels he is seeing 2 different set of lightning components across the 2 record types - when actually it is the same lightning flexi page.
Olle HenrikssonOlle Henriksson
Hi Lily,

Did you find out how to do this?