Activity Forums Salesforce® Discussions How we can link two Vf pages in salesforce ?

  • Yogesh

    Member
    August 12, 2019 at 8:35 am

    Hello,

    Put the below code in the controller action method that is being called on click of command button

    public class myControllerExtension {
    public myControllerExtension(ApexPages.StandardSetController controller) { }
    public PageReference OpenPage() {
    PageReference pr = new PageReference('/apex/Your_Second_Page_Name');
    pr.setRedirect(true);
    return pr;
    }
    }

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos