• #66870
    Salesforce | Kirandeep Kirandeep #17
    Forcetalks

    Can we write a trigger on the VF page in Salesforce?

    Can we write a trigger on the VF page in Salesforce? Explain.

     

    • This topic was modified 1 week, 4 days ago by Salesforce | Kirandeep Kirandeep.
    • This topic was modified 1 week, 3 days ago by Salesforce | Team Team.
    • This topic was modified 1 week, 3 days ago by Salesforce | Team Team.
    #66895
    Forcetalks

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2020 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?