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

  • Sumit kumar

    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

A Complete Guide to the Salesforce Administrator Certification Course: What to Expect and How to Succeed

Blog in

In today’s digital era, Salesforce has become the go-to customer relationship management (CRM) platform for businesses worldwide. Whether you're managing customer data, automating workflows, or…

Popular Salesforce Videos