• #21554
    Salesforce | shariq shariq #560

    Can we call apex function and script function at the same time by clicking a button on Salesforce visualforce?

    I want to call apex function and script function by a single button click.

    Tagged: , , ,


    Hello Shariq,

    Instead of onclick try – oncomplete event.

    <apex:commandButton value=”Save” action= “{!save}”
    Oncomplete=”javascript:top.window.opener.closeFunction()” />

    Salesforce | shariq shariq #560

    Thanks Radhakrishna,

    This helps a lot.


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

Please to reply to this topic.


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


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 2018 Forcetalks. All Right Reserved.

Log in with your credentials


Forgot your details?