• #21554
    Salesforce | shariq shariq #1

    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 #1

    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.

Property of Forcetalks.com
Copyright 2017 Forcetalks. All Right Reserved.

Log in with your credentials


Forgot your details?