Activity › Forums › Salesforce® Discussions › Is it possible to call apex method in javascript code? If yes, explain? Tagged: Salesforce Visualforce Salesforce® Discussions Is it possible to call apex method in javascript code? If yes, explain? Posted by Saurabh on April 21, 2017 at 2:42 PM Is it possible to call apex method in javascript code? If yes, explain? Neeta replied 9 years, 2 months ago 2 Members · 1 Reply Salesforce Visualforce 1 Reply Neeta Member April 23, 2017 at 7:50 AM Yes, we can call apex methods using javascript. We can achieve this using ActionFunction. ActionFunction allow you to tie an apex method to a javascript function name and invoke synchronously. ActionFunction must be a child of apex:form component. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me