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
Michael MMichael M 

Over-rode "new" button with lightning component-- need it to appear as a modal window

Hello, I overrode the standard "new" button for a custom object with a lightning component. That component calls a Flow, which displays fields and creates the new record. The problem I'm encountering is that when the user clicks "new", instead of displaying my component/flow in a modal window, it takes them to a new page and displays all the fields across the entire page. How can I get it to display in a regular, smaller, modal window? 
Best Answer chosen by Michael M
Michael MMichael M
Thank you. This site actually helped accomplish the task: https://www.lightningdesignsystem.com/components/modals/
 

All Answers

viswanath reddy 53viswanath reddy 53
Hi Michael M,

It looks like our team of experts can help you resolve this ticket.
We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!

https://jbshelpdesk.secure.force.com

Thanks,
Jarvis SFDC team
ANUTEJANUTEJ (Salesforce Developers) 
Hi Michael,

As stated in another thread regarding an implementation can you please have a look at the code to check it.

Stated in another developer forum thread:
===================================
"Can you please check this below code which has an implementation of a pop up window.

I used that above with a component in place of the welcome text and I was able to achieve the way to show the lightning coponent in a pop up window can you please have a look at it:

>> https://www.biswajeetsamal.com/blog/modal-box-in-lightning-component/

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you"

Thank you.
Michael MMichael M
Thank you. This site actually helped accomplish the task: https://www.lightningdesignsystem.com/components/modals/
 
This was selected as the best answer