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
salesforce1#salesforce1# 

How can call Apex controller class from visualforce page without command button?

Hi

 

How can call Apex controller class from visualforce page without using the command button.

 

Regards

nickwick76nickwick76

Hi, 

Can you describe how you would like to do it?

Should it be when clicking something or when loading the page or something else?

 

// Niklas

salesforce1#salesforce1#

Hi

 

if i click a button it redirect to controller class, but without using the button how can you redirect the controller class.

 

can please give the sample code also.

 

Regards

nickwick76nickwick76

But what do you want to do?

PrakashbPrakashb

You can call controller class when the data is changed or some other scenarios.

 

Can you please elaborate exactly in which scenario you want the controller class to be called??