Activity Forums Salesforce® Discussions Can we call Visualforce page from lightning component?

  • Anjali

    Member
    December 9, 2020 at 2:20 pm

    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(); }

  • Shweta

    Member
    December 9, 2020 at 4:31 pm

    Yes, we can call the VF page from JS controller.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos