Activity › Forums › Salesforce® Discussions › Can we call Visualforce page from lightning component?
-
Can we call Visualforce page from lightning component?
Posted by Marziya on December 9, 2020 at 12:56 PMCan we call Visualforce page from lightning component?
Shuvam replied 2 years, 11 months ago 5 Members · 4 Replies -
4 Replies
-
You can look to this code-
gotoURL : function(component, event, helper) {
var urlEvent = $A.get(“e.force:navigateToURL”);
urlEvent.setParams({
“url”:”/apex/vfpagename?parametername=”+”parametervalue”
});
urlEvent.fire(); } - [adinserter block='9']
-
Yes, you can call a Visualforce page from a Lightning Component. One common method is to use the lightning:navigation component along with the standard__webPage page reference type.
Log In to reply.