• #67250
    Salesforce | Ratnesh Ratnesh #1

    How can we call a controller method from JavaScript in Salesforce?

    How can we call controller method from JavaScript in Salesforce?

     Marziya #9

    Hello Ratnesh,

    Use apex:actionFunction within vf page and define “action” attribute to Function to call. For e.g

    <apex:actionFunction action=”{!displayMethod}” name=”displayMethod”/>

    here action=”{!displayMethod}” is my function name to call and within javascript call name attribute within action function according to your condition.


Viewing 2 posts - 1 through 2 (of 2 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 2020 Forcetalks. All Right Reserved.

Log in with your credentials


Forgot your details?