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
sreeesreee 

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.
RockzzRockzz

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.

 

http://www.salesforceworld.blogspot.com/2011/06/parameter-passing-using.html

 

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

 

 

Thanks,

Cool Sfdc