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 pm

    Can we call Visualforce page from lightning component?

    Mayra replied 1 month ago 4 Members · 3 Replies
  • 3 Replies
  • 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 1 month ago by  Mayra.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos