Activity Forums Salesforce® Discussions Can we write a trigger on the VF page in Salesforce?

  • Sumit

    Member
    January 15, 2020 at 1:53 pm

    There is no way to call visualforce page in a trigger.

    If you try to insert a record on one VF page and after hitting Save you want to be redirected to a specific page, I suggest you to check PageReference Class.

    After you call insert in a controller you should return a PageReference instance with URL you want user to be redirected to.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos