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
Paul FoleyPaul Foley 

Get Lighting component to only display in App Builder

I've created a Lightning component that listens for a particular event (status changing on an opportunity) If the event occurs, it does some stuff for us, which includes a visual element. (this is why it can't be done via a PB/Flow or Workflow rule)

I would really like the component to only be visible when you are in the Lighting App Builder area, and not on the actual opportunity page. Is there any way to detect that you're in the app builder area? - I'm thinking if I can detect that I'll be able to hide the content (via css) in the browser.