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
Sarah RobertsonSarah Robertson 

Overriding OWS and FLS with Visualforce or Lightning Components

Hi I'm looking to conditionally show a field if the following conditions are met on a Lightning component : 

1. if its the record owner viewing it 
2. if its an admin profile. 

However I'm running into issues, we have a problem as users are able to see it in global searches (which we cannot change as we have multiple countries using our org) Also they are able to see it in the report sections. So i was looking to turn off the visibility of this field and enforce the visibility through preferably a lightning component or if that's not possible a visualforce page. Has anyone managed to do this ?
 

Thanks very much 
 

Sarah