function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to call Two methods in One Button click

How to call Two methods in  One Button click???????????thx in advance

Jake GmerekJake Gmerek
Create a method that calls the other two and call that method. If you need more detail, let me know.

Hi Sree..



I hope this will help you!


You can use use apex:actionfunction and javascript to fulfill your requirement. ignore the parameter passing in following example.


If you want call methods according to any condition, you can write your condition in javascript function.


In Button u have to mention Vf page Name...




Cool Sfdc