You need to sign in to do that
Don't have an account?
Vivekh88
Close Modal dialog in Lightning
Hi,
when i click an action button on my account detail page it should redirect to a URL and close the action modal page. But the problem is the modal page is still there. Only redirection is happening.
this is my controller code,
I used 'closequickaction' method to close the modal window. But it is not working. Any idea..?
Thanks in advance..
Regards,
Vivek
when i click an action button on my account detail page it should redirect to a URL and close the action modal page. But the problem is the modal page is still there. Only redirection is happening.
this is my controller code,
({ myAction : function(component, event, helper) { var recordId = component.get("v.recordId"); var urlEvent = $A.get("e.force:navigateToURL"); urlEvent.setParams({ "url": "http://google.com&SalesforceRecordId="+recordId }); urlEvent.fire(); var dismissActionPanel = $A.get("e.force:closeQuickAction"); dismissActionPanel.fire(); } })
I used 'closequickaction' method to close the modal window. But it is not working. Any idea..?
Thanks in advance..
Regards,
Vivek
Let me know if this works.
Thanks
Vivekh
what is v.recordId refering to?
Please can you post entire code.
happy Lightning learning
Have you found any resolution? I am also finding an answer to this.
Thanks,
Chellappa