• #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: , , ,

    #21578

    Hello Shariq,

    Instead of onclick try – oncomplete event.

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

    #21612
    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.

CONTACT US

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

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

Log in with your credentials

or    

Forgot your details?