You need to sign in to do that
Don't have an account?
Angelo Rendon
How to create button which opens the New Contact modal in Lightning?
I am trying to create a button in a lightning component which opens the New Contact model. I am unsure of how to do this. so far i only have the button:
<ui:button label="+ Add Contact" press="{}"/>
Im guessing the press will call a function which routes to the New Contact page, but what would be the URL to do so?
Thanks
<ui:button label="+ Add Contact" press="{}"/>
Im guessing the press will call a function which routes to the New Contact page, but what would be the URL to do so?
Thanks
Solution:
navigateToURL: function(component, event) {
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({"url": "/003/e?"});
urlEvent.fire();
}