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
Haider NaseemHaider Naseem 

Identify button click with Lightning Component used for Standard Override

Hi Team,

I have a scenario where I will be over-riding the standard edit and view buttons on opportunity with the same lightning component.
Within this component, I need to identify whether Edit or View was clicked based on which I will display further UI.

I am stuck at this point as I am unable to find a way to check which standard button was clicked. Is it possible to identify the same? If yes how?

Regards,
Haider Naseem