0

I have an Aura component that I added to the page, that called every time a record opened.

The same component can be called from a button - (Buttons, Links, and Actions).

The component should behave differently - for example - some of the fields inside the component need to be disabled to edit when the record is opened, while when opening the component from a button can open them for edit.

is there a way to know where the Aura component opened from?

Many thanks

2
  • 1
    Summary: no. You need to create a wrapper component to pass in context information.
    – sfdcfox
    Apr 14, 2022 at 14:19
  • Thanks, @sfdcfox. did a wrapper and its worked,
    – Salvation
    Apr 24, 2022 at 16:04

0

Browse other questions tagged .