You need to sign in to do that
Don't have an account?
shrey.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.
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.
- To display a modal popup with a form inside a Lightning component.
- https://salesforce.stackexchange.com/questions/115092/how-to-display-modal-popup-with-a-form-inside-a-lightning-component
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