+ Start a Discussion
shrey.tyagi88@tcs.comshrey.tyagi88@tcs.com 

Open Pop Up Window -Lightning

Hi All ,
    I need to open a pop-up window from a record detail page . I got my hands on the following snippet of code that works just fine.

<aura:component implements="force:lightningQuickAction" >
    <ui:button label="Open in New window" press="{!c.openActionWindow}"/>
</aura:component>

Controller-

({
    openActionWindow : function(component, event, helper) {
         window.open("https://www.w3schools.com");
    }
})

Now in this code when you click on a button (on record detail page)a pop up comes in front and asks you to click a button (Label-Open in new window). I want to disable this behavior, I want that when I click the button on record detail page, a pop up should have the url (w3 schools) loaded into it.And I also want to pass a record parameter in the URL , say Opportunity.Id.
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi, Hope it helps.

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

Thanks
Rahul Kumar
 
shrey.tyagi88@tcs.comshrey.tyagi88@tcs.com
This partly resolves the issue . I need to load a URL in the modal popup . Can you help me with it's code?