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
Rishabh Sharma 52Rishabh Sharma 52 

Open Modal With Lightning Component on click of a standard Button

Hi All,

I have a scenario where i need to override Standard 'New' button on a custom object. On click of the button, a Modal should be displayed. This modal would be a form which will ask user to input some data and then Save the result on click of Save Button.

I already overrode the 'New' button with Lightning Component but instead of pop up, a page is displayed. 

Any ideas?

Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Rishabh,

Open lightning component in a modal on click of a button.May I Suggest you please refer the below link for reference. hope it will be helpful.

Please mark it as best answer if the information is that question is removed from an unanswered question and appear as a proper solution.

Rahul Kumar
Rishabh Sharma 52Rishabh Sharma 52
Hi Rahul,

I already tried that but that does not work with my scenario. In the example link you sent, user is trying to open component via another component.
Here, i want to open a pop up instead of page by overriding standard button with lightning component
Biao TianBiao Tian
Hi Rishabh,

Have you resolved the issue? 
Aditya Sahu 18Aditya Sahu 18
i have the same requirement. does anyone have any solution to this?