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.

  • Mayra

    Member
    October 29, 2022 at 11:31 am

    As per my understanding we can call visualforce page in lightening component by passing the url of vf page in JS of that component.

    • This reply was modified 2 years ago by  Mayra.
  • Shuvam

    Member
    June 8, 2023 at 7:49 am

    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.

Popular Salesforce Blogs